-
October 11th, 2007, 08:24 PM
#1
How to avoid Printig Dialog Window, and Printing Records window
Hi to everyone.
I'm using VB6 and Crystal Reports XI.
Does anybody known how to...
1) Avoid the Printing Dialog Window that pops after the .PrintReport command.
2) Avoid the Printing Records window that appears after the Printing Dialog Window.
The app requires that the user don’t be able to choose any printer, and don’t be able to stop the printing process when it started.
Thanks in advance.
-
October 12th, 2007, 01:56 PM
#2
Re: How to avoid Printig Dialog Window, and Printing Records window
Check if PrintReport has a parameter like .PrintReport False
or
You can send directly to the printer setting .Destination property
-
October 12th, 2007, 07:55 PM
#3
Re: How to avoid Printig Dialog Window, and Printing Records window
Originally Posted by jggtz
Check if PrintReport has a parameter like .PrintReport False
or
You can send directly to the printer setting .Destination property
Hi...
.PrintReport have no parameters available, (at least not with CR XI), and .Destination causes that the destination selected, in this case a printer, be the default printer in the Printers Dialog window.
Anyway I keep trying.
Thks for your answer.
-
October 12th, 2007, 09:03 PM
#4
Re: How to avoid Printig Dialog Window, and Printing Records window
How about this?
[QUOTE]
PrintOut Method (Report Object)
Use the PrintOut method to print out the specified pages of the report to the
printer selected using the “SelectPrinter Method (Report Object)” on
page 154. If no printer is selected, the default printer specified in the report
will be used. This method can be invoked only when in formatting idle mode.
Syntax
Code:
Sub PrintOut ([promptUser], [numberOfCopy], [collated], _
[startPageN], [stopPageN])[
/QUOTE]
http://technicalsupport.businessobje...%200%209308036
-
October 13th, 2007, 12:31 PM
#5
Re: How to avoid Printig Dialog Window, and Printing Records window
Originally Posted by dglienna
How about this?
PrintOut Method (Report Object)
Use the PrintOut method to print out the specified pages of the report to the
printer selected using the “SelectPrinter Method (Report Object)” on
page 154. If no printer is selected, the default printer specified in the report
will be used. This method can be invoked only when in formatting idle mode.
Syntax
Code:
Sub PrintOut ([promptUser], [numberOfCopy], [collated], _
[startPageN], [stopPageN])[
/QUOTE]
http://technicalsupport.businessobje...%200%209308036
Hi dglienna...
That method have the same effect as .Destination method, which causes that the destination selected, be the default printer in the Printers Dialog window.
I´m still trying
Thanks for your answer
-
October 13th, 2007, 01:17 PM
#6
Re: How to avoid Printig Dialog Window, and Printing Records window
Print to a file, and then copy it to a printer
-
October 18th, 2007, 05:50 AM
#7
Re: How to avoid Printig Dialog Window, and Printing Records window
Hi
Try this :
Code:
'crReport is CRADRT.Report object
'Get the printer object of selected printer
For Each prn In Printers
If prn.DeviceName = PrinterName Then Exit For
Next
'Set the printer to the report.
crReport.SelectPrinter prn.DriverName, prn.DeviceName, prn.Port
'Print the report
If Pages = "ALL" Then
crReport.PrintOut False, NoOfCopies, False
Else
'Print range of pages
crReport.PrintOut False, NoOfCopies, False, FromPages, ToPages
End If
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
|