Thursday, March 29, 2012

Direct print in RS 2000 no longer works in RS 2005 --what's the secret?

Hi all,
I have a Windows Forms application in VS 2005 that displays reports inside a
System.Windows.Forms.WebBrowser. The user can print using the print icon
within the browser window, but I also have a big Print button on the form
that prints directly. Now, with RS 2000, my print button worked fine, I
directed the ActiveX control to directly print like this:
rsBrowser.Navigate(ReportServicesPath & SpecifiedReportURL &
"&rs%3aCommand=Get&rc%3aGetImage=8.00.1038.00RSClientPrint.html")
But, I've now upgraded to SQL 2005 and RS 2005, and this code doesn't work,
although printing via the print icon still works fine. What is the
equivalent of the above code for RS 2005'
The above code puts an error into the browser window:
>>
Reporting Services Error
----
a.. An internal error occurred on the report server. See the error log for
more details. (rsInternalError) Get Online Help
a.. Specified argument was out of the range of valid values. Parameter
name: offset
<<
I looked at the error log, but it is impenetrable to me.
Thanks,
C17Hello C17,
I understand that you want to use the URL access to print the report.
In Reporting Services 2005, the RC parameter prefix is changed and you
could not use the GetImage now.
I would like to suggest you use the ReportViewer control.
Here is the article for your reference:
http://msdn2.microsoft.com/en-us/library/microsoft.reporting.winforms.report
viewer(VS.80).aspx
Hope this helps.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||Thank you. The ReportViewer control looks like a better way to display
reports anyway. I will switch over to it.
--C17|||Hello C17,
If you have any question, pleae feel free to let me know.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.

No comments:

Post a Comment