Hi:
With this code I sort the report and then I can print with the option in CR:
But is I want to print the report without see it?Code:CRViewer1.ReportSource = Rpt
CRViewer1.ViewReport
Anyone know the way to do this?
Thanks
Printable View
Hi:
With this code I sort the report and then I can print with the option in CR:
But is I want to print the report without see it?Code:CRViewer1.ReportSource = Rpt
CRViewer1.ViewReport
Anyone know the way to do this?
Thanks
Use the PrintOut method of the Report object.
ok I will try...
thanks
Hi:
I had try the printout method and work,but CR continues to display a prompt for the printer...do you know the way to clean the prompt of the printer given By CR,and print without any prompt?
Thanks
I don't have Crystal on this pc and so cannot verify the following but if I remember correctly
the first argument of the PrintOut method is called PromptUser. Pass in False and the user won't be prompted for a printer.
The report object has a property called DisplayProgress. Set it to false and you won't see the Printing Page X of X dialog.
Yes is the first argument...Now work well
ThanksCode:Rpt.PrintOut False