Export to PDF | |
As you may have learned from experience, the output from a CrystalReportViewer does not always look like you had intended. That is because the output is rendered as HTML and sent to the browser that then generates the web page. In order to get the exact formatting you want, you should export your reports as PDF documents. One advantage of doing so is that most users know how to print from the Acrobat Reader. Also, users can save reports and send them as e-mail attachments. One downside to this option is that users must start the printing process themselves, which does not solve the problem of minimizing user interaction. Unfortunately, since a PDF is not a page rendered by the browser, none of the JavaScript tricks above will work for us. There is no simple way to automatically print an exported Crystal Report in PDF format. |
원문 : http://aspalliance.com/509_Automatically_Printing_Crystal_Reports_in_ASPNET.4