[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1999
  • Last Modified:

How to Programatically render sql .rdlc report to pdf format?

Hi,
I developed .Net 3.5 web application using VS 2010. I have Sql client report(.rdlc) in the application.
How to  programatically render sql .rdlc report to pdf format?

Thanks
0
KavyaVS
Asked:
KavyaVS
  • 2
3 Solutions
 
ValentinoVBI ConsultantCommented:
That should be possible by consuming the ReportingExecutionService web service and then calling the Render method with the appropriate format specified.

Have a look at the examples (and function description) here, it should give you an idea: ReportExecutionService.Render Method
0
 
Alpesh PatelAssistant ConsultantCommented:
rViewer.ServerReport.ReportPath = "reportPath";
            rViewer.ServerReport.ReportServerUrl = "reportserverurl";
            rViewer.ServerReport.ReportServerCredentials.NetworkCredentials = "credential;";
            rViewer.ServerReport.SetParameters();

            rViewer.ServerReport.Render("Pdf", null, out mimeType,
                    out encoding, out filenameExtension, out streamids, out warnings);
0
 
ValentinoVBI ConsultantCommented:
Using the ReportViewer is indeed also an option. See here for a more complete example: ServerReport.Render Method (String, String, out String, out String, out String, out String[], out Warning[])
0
 
KavyaVSAuthor Commented:
Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now