|
-
Mar 18th, 2008, 04:03 PM
#1
Thread Starter
Frenzied Member
[RESOLVED]Printing Report Without View Report
Hi:
With this code I sort the report and then I can print with the option in CR:
Code:
CRViewer1.ReportSource = Rpt
CRViewer1.ViewReport
But is I want to print the report without see it?
Anyone know the way to do this?
Thanks
Last edited by sacramento; Mar 29th, 2008 at 01:53 PM.
-
Mar 18th, 2008, 04:35 PM
#2
Re: Printing Report Without View Report
Use the PrintOut method of the Report object.
-
Mar 18th, 2008, 04:36 PM
#3
Thread Starter
Frenzied Member
Re: Printing Report Without View Report
-
Mar 29th, 2008, 05:40 AM
#4
Thread Starter
Frenzied Member
Re: Printing Report Without View Report
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
-
Mar 29th, 2008, 10:03 AM
#5
Re: Printing Report Without View Report
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.
-
Mar 29th, 2008, 12:44 PM
#6
Thread Starter
Frenzied Member
Re: Printing Report Without View Report
Yes is the first argument...Now work well
Thanks
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
|