DEAR All TDL Experts, I am using two types of invoice format and I also having two printer. I like to sent invoice for particular printer automatically, every time I print. I used following code, but it is not working. Please help me. [Report : myinvoice1] variable : SVPrinterName Set : SVPrinterName :"Canon LBP2900" [Report : Myinvoice2] variable : SVPrinterName Set : SVPrinterName :"HP 1020 Plus" Please help me, Thanks in advance.
Dear Sir, Create two Voucher types and try the below code [#Part: VTYP Behaviour] Add : Lines : At End : VTYPPrinterSelect [Line:VTYPPrinterSelect] Local : Field : Default : Color : Blue Field : Medium Prompt,VTYPPrinterSelect Local : Field : Medium Prompt : Set as : "Select Printer:" [Field:VTYPPrinterSelect] Use : Name Field Table : List of Printers Show Table : Always Storage : PrinterSelect [System:UDF] PrinterSelect : String : 2500 [#Report: Voucher] Add : Variable : SVPrinterName Add : Set : SVPrinterName : @@KNSCurrPrinter [System:Formula] KNSCurrPrinter : If @@KNSVTYPPrinter="" Then ##SVPrinterName Else @@KNSVTYPPrinter KNSVTYPPrinter : $PrinterSelect:VoucherType:##SVVoucherType
Try this code, Mutharasan [Report : myinvoice1] variable : SVPrinterName PrintSet : SVPrinterName :"Canon LBP2900" [Report : Myinvoice2] variable : SVPrinterName PrintSet : SVPrinterName :"HP 1020 Plus"
Ok.... Got it.... Instead of Add : Set : SVPrinterName : @@KNSCurrPrinter use PrintSet : SVPrinterName @KNSCurrPrinter Thanx @NAGARAJKMAR SUBRAMANIAN Sir