SqueakinSweep
Programmer
Ok...heres the scanario. I have a crystal viewer form, and all my reports are loaded, dataset applied etc and preview displayed.
There are 2 ways to print the report.
1) viewer.printreport (shows print dialog box)
2) report.PrintToPrinter(1, True, 0, 0) (goes direct to printer)
Now..here is my dilemna. There is a known bug with option 1, in that calling this method, ignores various page formatting you may have already done with the report object, even so far as defaulting the paper type back to Letter format regardless. So I thought Id stick to option 2, but I would also like to be able to use a print dialog option also to allow my users to select the printer to print to. I cant use the standard Printdialog, as it wants to be told what the Printdocument is and not the Crystal report.
Im sure Im missing something so obvious, but would appreciate anyone letting me in on how best to utilise a Printdialog when printing a CR?
Regards
Sweep
Sweep
...if it works dont mess with it
There are 2 ways to print the report.
1) viewer.printreport (shows print dialog box)
2) report.PrintToPrinter(1, True, 0, 0) (goes direct to printer)
Now..here is my dilemna. There is a known bug with option 1, in that calling this method, ignores various page formatting you may have already done with the report object, even so far as defaulting the paper type back to Letter format regardless. So I thought Id stick to option 2, but I would also like to be able to use a print dialog option also to allow my users to select the printer to print to. I cant use the standard Printdialog, as it wants to be told what the Printdocument is and not the Crystal report.
Im sure Im missing something so obvious, but would appreciate anyone letting me in on how best to utilise a Printdialog when printing a CR?
Regards
Sweep
Sweep
...if it works dont mess with it