I should have added that I don't wanna be annoyed by the screen displayed by the GetPrinter() function everytime I print an OR. Why? coz printing several ORs everyday with the prompt to choose which printer to use (per OR) will tire my user.
>Use getprinter()
>Aashish
>>Hi,
>>I have two printers, "Printer Local" and "Printer Network". the default printer is the "Printer Local". I don't want to set the "Printer Network" as the default printer everytime I'm using my program that prints an invoice.
>>Here's the scenario, I use the "Printer Local" to print MS Word documents, so its the default printer.
>>I use the "Printer Network" to print invoices/OR. So what I want is to redirect the printer input to "Printer Network" without setting it as the default printer.
>>Here is my sample code:
>>SET TALK OFF
>>SET SAFETY OFF
>>SET CONSOLE OFF
>>tempfile = SYS(2015) + ".txt"
>>SET DEVICE TO FILE &tempfile
>>@PROW(), 1 SAY "sample text for my network printer"
>>
>>* these next two lines were the original code to print
>>* to the default printer "Printer Local"
>>* you can replace these with the appropriate code :)
>>SET DEVICE TO PRINTER
>>TYPE &tempfile TO PRINTER
>>
>>Thanks!
>>
>>Erik
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only