Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>>I have users who need to print to a printer attached to lpt1 when printing out tags. I used the routine below to change the printer, then ran the label report. problem is it sends the report to the default printer instead of the lpt1 printer. When I checked the value of set("printer",1) it came out as "C:\VFE\CANNON BJC-50", but the value of lcprinter was "CANNON BJC-50". So why the path is being added I do not know. Can someone help me? I know I can use "PROMPT" but i'd rather just set it in code and go.
>>
>>Here is the code:
>>
>>aprinters(laprinters)
>>LNROW=ascan(LAPRINTERS,"LPT1:")/2
>>LCPRINTER=LAPRINTERS[LNROW,1]
>>SET PRINTER TO (LCPRINTER)
>>
>>LABE FORM mfgcut ALL NOCONSOLE TO PRINTER
>>
>>TTTIA!
>
>
Tony,
>set printer to name (lcPrinter)
>Cetin
THANK YOU! This is embarassing, I'm sure I knew this in a former life, but I had forgotten. I think I need to refresh() my memory, or add 128meg!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement