Selecting the Printer for Crystal Reports

Patoreca

New Member
I am having troubles trying to select the printer when i generate the crystal report from 4GL. When i get the option to print you cant select the printer and defaults to the current one.
Is there a way of selecting the printer by accessing a specific com object ?
If so can some one HELP !!!!!!!! :eek:

I am currently using Crystal version 9.
 
Hi,
are you executing Cristal Reports from Progress?
Can you especify the printer when calling it?
If yes, you can use the printer dialog prior to calling CR, passing the printer id you selected with the dialog.
I do not understand very well how you do this, please explain a little more and I will be glad to help you.
Regards
Oscar
 
Sample code select printer for crystal:
/* Lancement choix imprimante si pas encore d'imprimante sélectionnée */
IF pc-drivername = "":U OR
pc-drivername = ? OR
pc-printername = "":U OR
pc-printername = ? OR
pc-printerport = "":U OR
pc-printerport = ? THEN
DO:
SYSTEM-DIALOG PRINTER-SETUP.
ASSIGN
pc-drivername = SESSION:PRINTER-NAME
pc-printername = SESSION:PRINTER-NAME
pc-printerport = SESSION:PRINTER-PORT.
END.

ch-CRreport:SelectPrinter (pc-drivername,pc-printername,pc-printerport).
 
Back
Top