Printing Example?
Publicado: Vie Ago 22, 2008 8:45 pm
I wonder if anyone would be so kind as to provide an example of how to
select a printer in Xailer and then route the output of @ SAY commands to
that device? I am porting a Clipper app over to Xailer and have dozens of
reports that I would like to use as is during the time it takes me to learn
a better way (like PageScript, for example).
I see in the documentation that there is a PUBLIC variable named PRINTER
that can be used to retrieve an array of installed printers, the current
printer, and the current printer port.
Do I put a TPrintDlg component on the form and then call it?
Do I retrieve the value of PRINTER:cPrinterName after returning from the
TPrintDlg?
Do I "SET PRINTER TO cPrinterName"? or do I have to "SET PRINTER TO cPort"?
Can I "SET PRINTER ON" with "SET CONSOLE OFF" to issue printer control
sequences to the printer?
I know that this is different than document printing in which the whole
document exists as a file before printing, but I would like to use the
built-in GUI components to select the printer destination, if possible.
Thanks,
Gary
select a printer in Xailer and then route the output of @ SAY commands to
that device? I am porting a Clipper app over to Xailer and have dozens of
reports that I would like to use as is during the time it takes me to learn
a better way (like PageScript, for example).
I see in the documentation that there is a PUBLIC variable named PRINTER
that can be used to retrieve an array of installed printers, the current
printer, and the current printer port.
Do I put a TPrintDlg component on the form and then call it?
Do I retrieve the value of PRINTER:cPrinterName after returning from the
TPrintDlg?
Do I "SET PRINTER TO cPrinterName"? or do I have to "SET PRINTER TO cPort"?
Can I "SET PRINTER ON" with "SET CONSOLE OFF" to issue printer control
sequences to the printer?
I know that this is different than document printing in which the whole
document exists as a file before printing, but I would like to use the
built-in GUI components to select the printer destination, if possible.
Thanks,
Gary