Print Button

  • Thread starter Thread starter Mariame
  • Start date Start date
Hi All,
How to add a print button to a crystal report???
Thx & Regards
The only way I ever did it was adding a print button the report's
webpage (just a normal button that says Print), then when it's clicked,
popup a new window w/ the report exported to Excel or a PDF. Then I let
the user manually print it.
 
See:
http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_web_app_printing.pdf
on how to get a web form (.aspx) page to send PDF generated by the
report engine directly to the visitor's browser.

Once you get a web form page that will send the generated PDF directly
to the browser, you can create a link to that page that will pop open
a new browser window by adding the target='blank' attribute on the <a
href...> tag that will link to that web form.

If you'd rather have a button do that rather than a clickable link, I
think that would involve having some javascript to open a new window
and then tell that new window to to load itself with the .aspx page
from the first step above.
 
Back
Top