Crystal Report direct saving as PDF, instead of viewing

I want to make a report from ASP.Net, in Crystal Report. I want, when user click on print, it should simply show a browser dialog of Save,Open,Save as, and PDF should be saved, or Crystal Report print preview should appear, I don't want to display report first in Viewer then click on button to get print or PDF, I want simply from clicking on asp button, I have all the idea of parameters and know how to make report, my question is just to not to show viewer and take report from asp button in a form of PDF or print preview dialog to print. I have used the Export method of .Net for Crystal Report, but it does not work.

32.5k 32 32 gold badges 115 115 silver badges 136 136 bronze badges asked Jun 2, 2011 at 5:09 Muhammad Atif Agha Muhammad Atif Agha 1,545 3 3 gold badges 33 33 silver badges 76 76 bronze badges

2 Answers 2

You can generate a PDF by Using a Crystal Report and piece of code.