I have two printers connected to my computers, one printer for retail and one for wholesale, so I was wondering how can I set a default printer for different vouchers, that is... If user is entering sales invoice, it uses a different default printer automatically, they don't have to choose, and also if they are entering POS, then it will automatically use the other retail printer. Thank you.
Create a UDF in Voucher Type (see the image) [Form: Printed Invoice] Set: SVPrinterName : ($myPrinterName:VoucherType::$VoucherTypeName) ;;"EPSON L130 Series" [#Report: Printed Invoice] Print Set : SVPrinterName : ($myPrinterName:VoucherType::$VoucherTypeName)
[#Part : VTYP BehaviourMain] Add : Line : After : VTYP DefaultJurisdiction : Set_PrinterName [Line : Set_PrinterName] Field : Long Prompt, Set_PrinterName Local : Field : Long Prompt : Info : "Set your Printer :" Local : Field : Long Prompt : Width : @@MediumWidth+4 Local : Field : Long Prompt : Color : Blue [Field : Set_PrinterName] Use : Name Field Set Always : Yes Storage : VchTypePrinter Table : List of Printers Show Table : Always [System : UDF] VchTypePrinter : String : 12501 [#Report: POS Invoice Print] Option: Set_SalesPrinter : @@IsSales [#Report: Printed Invoice] Option: Set_SalesPrinter : @@IsSales [!Report: Set_SalesPrinter] Print Set : SVPrinterName : ($VchTypePrinter:VoucherType:$VoucherTypeName)