Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I would like to export multiple pdf files and finally to combine as a single pdf file from the generated crystal reports in asp.net


What I have tried:

Tried with the option crystalReport.ExportToHttpResponse but it is allowing to export only one report output as PDF and where as it is not allowing when multiple crystal reports are being generated at runtime.
Posted
Updated 15-Sep-16 10:24am
Comments
Richard Deeming 15-Sep-16 15:56pm    
Try using ExportToDisk, or ExportToStream.

Which one you choose depends on how you're planning to combine the PDF files.
shekhar pati 17-Sep-16 2:19am    
Thanks for your help. I have already checked the option "ExportToDisk" and it is working well when to export multiple crystal report outputs to pdf files but end user has to open the specific folder in order to check for it, instead if we give an option as a downloaded file on the browser itself then it is much convenient to the end user.
In that context, I have tried with the option "ExportToHttpResponse" but i was unable to do it.
Maciej Los 15-Sep-16 16:06pm    
What have you tried? Where are you stuck?

1 solution

Think of it! You have to export data(!) into pdf. See:
Export DataSet or DataTable to Word Excel PDF and CSV Formats[^]
Exporting a DataTable to PDF[^]
c# - Convert Datatable to PDF - Stack Overflow[^]

You can try to use that solution (for text files), but it needs improvements:
multiple crystal reports in a single PDF file | The ASP.NET Forums[^]
 
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