Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have fetch the data from SQL and show it in a crystal report viewer through Query.After that I want to save that data in a PDF file which is shown in Crystal Report.
Please help me..............
Posted

1 solution

You can use Crystal Reports Export functions to save the report as PDF. Something like this:

C#
report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "YourReport")


or if you are using a Windows App

C#
ReportDocument report = new ReportDocument( );
                report.Load( reportURL );
                report.ExportToDisk( ExportTypeFormat.PortableDocFormat , "yourFilePath" );


Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900