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
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Printing Example?
-
- Mensajes: 202
- Registrado: Dom Feb 17, 2008 3:35 am
-
- Mensajes: 202
- Registrado: Dom Feb 17, 2008 3:35 am
Printing Example?
I think that I am confusing document printing with procedural line-by-line
printing. The TPrintDlg object, I think, is for printing selected documents
and not applicable to line-by-line printing.
However, my question still remains about SET PRINTER TO. If I try SET
PRINTER TO LPT1 in a Windows Vista environment and do not have a printer
attached to a physical LPT1 port (it's an HP DOT-type port), I get an error
code 2 Create Error LPT1.prn (or LPT2.prn). This is even if I share the
printer and use a NET USE LPT1 computernameprintername or NET USE LPT2
computernameprintername command to redirect. I've run into this problem
with XHarbour as well and it seems to have to do with file creation rights
in Vista (even though I have User Account Control turned off on my
development computer. If I don't do anything with SET PRINTER TO and just
let it default, I can print, so I am guessing that the default setting of
SET PRINTER TO PRN is what is working.
So, if I use PRINTER:aPrinterNames to retrieve a list of locally installed
printers, can I SET PRINTER TO a retrieved printer name?
Thanks,
Gary S. Rogers
CourTech Systems, Inc.
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:[email=48af0958@ozsrv2.ozlan.local...]48af0958@ozsrv2.ozlan.local...[/email]
>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
>
printing. The TPrintDlg object, I think, is for printing selected documents
and not applicable to line-by-line printing.
However, my question still remains about SET PRINTER TO. If I try SET
PRINTER TO LPT1 in a Windows Vista environment and do not have a printer
attached to a physical LPT1 port (it's an HP DOT-type port), I get an error
code 2 Create Error LPT1.prn (or LPT2.prn). This is even if I share the
printer and use a NET USE LPT1 computernameprintername or NET USE LPT2
computernameprintername command to redirect. I've run into this problem
with XHarbour as well and it seems to have to do with file creation rights
in Vista (even though I have User Account Control turned off on my
development computer. If I don't do anything with SET PRINTER TO and just
let it default, I can print, so I am guessing that the default setting of
SET PRINTER TO PRN is what is working.
So, if I use PRINTER:aPrinterNames to retrieve a list of locally installed
printers, can I SET PRINTER TO a retrieved printer name?
Thanks,
Gary S. Rogers
CourTech Systems, Inc.
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:[email=48af0958@ozsrv2.ozlan.local...]48af0958@ozsrv2.ozlan.local...[/email]
>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
>
-
- Mensajes: 202
- Registrado: Dom Feb 17, 2008 3:35 am
Printing Example?
I just discovered (by accident) the gold mine of code contained in the
printer sample project. It would be nice if the Xailer Help file would point
to the sample files included with the product!
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:48b21a7f$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I think that I am confusing document printing with procedural line-by-line
>printing. The TPrintDlg object, I think, is for printing selected documents
>and not applicable to line-by-line printing.
>
> However, my question still remains about SET PRINTER TO. If I try SET
> PRINTER TO LPT1 in a Windows Vista environment and do not have a printer
> attached to a physical LPT1 port (it's an HP DOT-type port), I get an
> error code 2 Create Error LPT1.prn (or LPT2.prn). This is even if I share
> the printer and use a NET USE LPT1 computernameprintername or NET USE
> LPT2 computernameprintername command to redirect. I've run into this
> problem with XHarbour as well and it seems to have to do with file
> creation rights in Vista (even though I have User Account Control turned
> off on my development computer. If I don't do anything with SET PRINTER TO
> and just let it default, I can print, so I am guessing that the default
> setting of SET PRINTER TO PRN is what is working.
>
> So, if I use PRINTER:aPrinterNames to retrieve a list of locally installed
> printers, can I SET PRINTER TO a retrieved printer name?
>
> Thanks,
> Gary S. Rogers
> CourTech Systems, Inc.
>
>
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:[email=48af0958@ozsrv2.ozlan.local...]48af0958@ozsrv2.ozlan.local...[/email]
>>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
>>
>
printer sample project. It would be nice if the Xailer Help file would point
to the sample files included with the product!
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:48b21a7f$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I think that I am confusing document printing with procedural line-by-line
>printing. The TPrintDlg object, I think, is for printing selected documents
>and not applicable to line-by-line printing.
>
> However, my question still remains about SET PRINTER TO. If I try SET
> PRINTER TO LPT1 in a Windows Vista environment and do not have a printer
> attached to a physical LPT1 port (it's an HP DOT-type port), I get an
> error code 2 Create Error LPT1.prn (or LPT2.prn). This is even if I share
> the printer and use a NET USE LPT1 computernameprintername or NET USE
> LPT2 computernameprintername command to redirect. I've run into this
> problem with XHarbour as well and it seems to have to do with file
> creation rights in Vista (even though I have User Account Control turned
> off on my development computer. If I don't do anything with SET PRINTER TO
> and just let it default, I can print, so I am guessing that the default
> setting of SET PRINTER TO PRN is what is working.
>
> So, if I use PRINTER:aPrinterNames to retrieve a list of locally installed
> printers, can I SET PRINTER TO a retrieved printer name?
>
> Thanks,
> Gary S. Rogers
> CourTech Systems, Inc.
>
>
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:[email=48af0958@ozsrv2.ozlan.local...]48af0958@ozsrv2.ozlan.local...[/email]
>>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
>>
>