I have to agree with Peter. Doing a "set printer to name \\foo\\bar"
will not override what is in the FRX settings. You will either have to
clear them or create each with the correct settings for the specific
printer, the problem there will be printing from the computer that is
also serving as the print queue.
--
::michael
--
Peter Cushing wrote:
> pamechu umgobwe wrote:
>> SET REPORTBEHAVIOR 80
>> SET PRINTER TO default
>> SET PRINTER off
>> SET PRINTER TO NAME \\printserver\inv1
>> SET PRINTER ON
>> _pcopies = 3
>> _peject='NONE'
>> printjob
>> report form inv1 to printer noconsole
>> endprintjob
>> SET PRINTER off
>> SET PRINTER TO NAME \\printserver\inv2
>> SET PRINTER ON
>>
>> printjob
>> report form inv2 to printer noconsole
>> endprintjob
>>
> I have a separate app that does all my printing/emailing. This changes
> printers all the time just by using
>
> SET PRINTER TO NAME (cPrinter)
>
> IMO you don't need to use the set printer on etc.
>
> You have to make sure you clear out any printer settings before calling
> REPORT FORMAT INV1 then put your own in for orientation/papersize etc.
>
> USE ("yourreport.frx") EXCLUSIVE
> replace tag WITH SPACE(0)
> replace tag2 WITH SPACE(0)
> replace expr WITH 'DRIVER=Winspool' + ps_crlf + ;
> 'DEVICE=' + ALLTRIM(cPrinter) + ps_crlf + ;
> 'OUTPUT=' + ALLTRIM(prnlist.port) + ps_crlf + ;
> 'ORIENTATION=' + cOrientation + ps_crlf + ;
> 'PAPERSIZE=' + ALLTRIM(prnlist.papersize) +
> ps_crlf + ;
> 'DEFAULTSOURCE=' + ALLTRIM(prnlist.defsource) +
> ps_crlf
>
>
> If you need more information please let me know.
>
> Peter
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.