1) Open the .RDL file in a text editor and change the XML.
2) Change the first node to look like this
Report xmlns=”http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition” xmlns:rd=”http://schemas.microsoft.com/SQLServer/reporting/reportdesigner”
3) Do a search for “Interactive” You should find 2 nodes InteractiveWidth and InteractiveHeight. You need to delete these nodes.
4) The XML in the RDL file is different between 2005 and 2000 when you want to pass parameters to a SQL procedure.
In 2000 they pass parameters this way in the RDL file(note I used < for the symbol:
< Query>
< CommandType> StoredProcedure< /CommandType>
< CommandText> =”procGetInvMovement”< /CommandText>
< QueryParameters>
< QueryParameter Name=”@BegDate”>
< Value> =Parameters!pBegDate.Value< /Value>
< /QueryParameter>
< QueryParameter Name=”@EndDate”>
< Value> =Parameters!pEndDate.Value< /Value>
< /QueryParameter>
< /QueryParameters>
< DataSourceName> JLG SQL< /DataSourceName>
< /Query>
and in 2005 they do it this way:
< Query>
< rd:UseGenericDesigner> true< /rd:UseGenericDesigner>
< CommandText> =”Execute procGetInvMovement ‘” & Parameters!pBegDate.Value & “‘, ‘” & Parameters!pEndDate.Value & “‘”< /CommandText>
< QueryParameters>
< QueryParameter Name=”pBegDate”>
< Value> =Parameters!pBegDate.Value< /Value>
< /QueryParameter>
< QueryParameter Name=”pEndDate”>
< Value> =Parameters!pEndDate.Value< /Value>
< /QueryParameter>
< /QueryParameters>
< DataSourceName> JLG SQL< /DataSourceName>
< /Query>
Notice how they don’t include the parameters in the commandtext tag in 2000
5) In to the 2000 version of the .RDL file. You will need to add this line:
<CommandType>StoredProcedure</CommandType>
after the first <Query> tag.
THIS IS NOT SUPPORTED SO I WOULD BACKUP YOUR REPORTS BEFORE ATTEMPTING THIS AND USE THIS ADVICE AT YOUR OWN RISK.
3 comments:
Hi, thank you vewry much for that workaround.
There's one more thing to change.
If there is a node "custom properties" you have to delete this node as well.
TY Again,
Christopher
Hi,
i have a tool that converts 2008 rdl to 2005 to provide backward compatibility. Please contact on my email : amarsale@gmail.com
Thanks & Regards,
Amar Sale
Please visit the downloads section of APPLYBI.COM to get information about the tool for converting 2008 rdl (SSRS Report) to 2005
Post a Comment