Search code examples
c#reporting-servicesreportviewer

microsoft report viewer defination changes 2008 to 2016, if parameter from toolbox added


I have vs2017 my colleague has vs2015, he installed report viewer by vs studio installer. we are working on same project when he creates new report(.rdlc) file, his report schema defination url is like;

<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

So do mine, but when I add parameter from toolbox, it changes to below magicly;

<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

Yeah I understood my external report viewer version is diffirent from vs integrated, its all behind this.

if I remove some unnecessary tags that I awere of via this post it works, but If I add any param or change the position of existing paremeter 2016 stuff comes in with its xml elements back. So I need to tell VS

"Forget 2016. please continue using 2008 version"

Edited: They say "you should set to the correct Target Server Version". What does and how can I do this please elaborate the steps of this action?

removing vs 2017 and install vs2015 looks like certain solution but I dont want to chnage my ide just because of few unnecessary xml elements.


Solution

  • You need to change the TargetServerVersion to SQL Server 2008. This can be found in the Properties of you Visual Studio Project on the General tab.