|
-
Feb 14th, 2008, 04:16 PM
#1
[CR .NET 2k5 Edition] Printing Crystal Reports via code.
One thing that has baffled me in the past was I could not figure out how to print a Crystal Report without first sending it to the CRViewer first. Basically, I want to put a big "Print" button on my forms that would send the things straight to printer, do not pass Go, do not collect $200.
My implementation of Crystal Reports is that I first pull a DataSet from the database with given parameters. Then I declare a new report object and load in the corresponding *.rpt file that was built using the schema.xml from that dataset. I pass the report any additional parameters it might need and send the thing to the CRViewer.
Assuming I can create that Report document object and populate it as I have been, does anyone have a code-example of popping a printer select dialog and upon exit, sending it off to the printer of choice w/o having to go through the CRViewer?
Any help would be most appreciated. I can provide code samples if required.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|