Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hi,
I m Trying to Export Crytal Report Programatically in C#.net WinForms Application.I want to Export Report only not save in my Disk, it will ask to open or Save like Asp.net.
Posted

1 solution

You can't "just export".

Here is a way to do what I think you want:

0) export the report and save it to the users temp folder
- Look at the 'exporttodisk' method from you crystal report.
- Look at the 'specialdirectories'

1) show a dialog asking 'open' or 'save'

2) depending on the action chosen by the user open the exported file from temp directory or copy the file to the chosen path

3) delete the file in the temp directory
 
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