Automatically generate report in a specific format using SSRS

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

2 comments:

  1. Hi

    I 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

    ReplyDelete