If you would like to generate a report in a specific format(html,pdf,xls, csv, xml) without having the user to select the format, use this technique:
PDF : http://localhost/ReportServer?CompanySales&rs:Command=Render&rs:Format=PDF
EXCEL: http://localhost/ReportServer?CompanySales&rs:Command=Render&rs:Format=Excel
With Parameters: Passing State and City as parameters
http://localhost/ReportServer?CompanySales&rs:Command=Render&rs:Format=PDF&State=CA&City=ALI
Hi
ReplyDeleteI want to generate a pdf automaticly from the asp:reportviewer control.
The reason for this is we do not want to build custom screens for each report but use the standard SSRS functionality.
There does not seem to be a OnClick event on the Report Viewer control.
Any assistance would be appreciated.
Drickus
drickus: Check this link
ReplyDeleteGenerate PDF