-
Apr 13th, 2003, 01:30 AM
#1
Thread Starter
Hyperactive Member
-
Apr 14th, 2003, 03:32 AM
#2
Lively Member
Printing
If you use crystal 8.5 developer and u use the Active X designer to add reports u could do the following in code to show a printer dialogue and then select which ever printer you want.
Make sure the the Crystal Reports 8.5 design and run time library is checked in your references in your vb project.
use the following code to call the printer dialogue.
vb code
----------
CrystalReport1.PrinterSetup Me.hWnd
----------
Hope thise helps.
Do, or do not. There is no 'try'.
-
Apr 14th, 2003, 11:13 AM
#3
Thread Starter
Hyperactive Member
-
Apr 15th, 2003, 08:02 AM
#4
Lively Member
Default Printer
1. To check if you allow printing on your report in Crystal 8.5
Go to the following menu in crystal
File > Printer Setup > No Printer (check box)
Always make sure that No Printer is not checked otherwise you will not be able to print your report. If the No printer is not checked then crystal will use the default printer installed to print out the report.
If you want to specify a printer during run-time you will have to specify a printerdriver, printername and printerport in your code.
[form.]Report.PrinterDriver [= DriverName$]
For example:
CrystalReport1.PrinterDriver = "Epson24.drv"
[form.]Report.PrinterName[= PrinterName$]
For example:
CrystalReport1.PrinterName = "Epson LQ-850"
«Specifies the Epson LQ-850 printer.»
[form.]Report.PrinterPort[= PortName$]
For example:
CrystalReport1.PrinterPort= "LPT1"
«Sets the printer port to LPT1.»
If you have crystal 8.5 developer you could reference the developer help files for more details and examples.
2. To solve the problem for your database name that have changed check out this link as might just solve your problem.
http://support.crystaldecisions.com/...s/c2001289.asp
Last edited by Joffies; Apr 15th, 2003 at 08:08 AM.
Do, or do not. There is no 'try'.
-
Apr 23rd, 2017, 11:12 PM
#5
New Member
Re: Printing
Originally Posted by Joffies
If you use crystal 8.5 developer and u use the Active X designer to add reports u could do the following in code to show a printer dialogue and then select which ever printer you want.
Make sure the the Crystal Reports 8.5 design and run time library is checked in your references in your vb project.
use the following code to call the printer dialogue.
vb code
----------
CrystalReport1.PrinterSetup Me.hWnd
----------
Hope thise helps.
Thanks. Above line help me lot to solve my problem.
To change printer in crystal report
Dim CrystalReport1 as CRAXDDRT.Report
CrystalReport1.PrinterSetup Me.hWnd
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
|