Use different printers for different voucher types

Discussion in 'Free Source Codes' started by Reagan, Dec 29, 2020.

    
  1. Reagan

    Reagan New Member


    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.
     


  2. MANU JOSE C.A

    MANU JOSE C.A New Member


    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)
     

    Attached Files:



  3. MANU JOSE C.A

    MANU JOSE C.A New Member


    [#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)
     

    Attached Files:

    sekharchana likes this.


  4. Reagan

    Reagan New Member


    Thank you so much good Sir, it works. Thank you once again
     



  5. Very Usefull sir, Nice thank you
     


Share This Page