Is it possible to preset various printers for different reports?

Discussion in 'Knowledge Base' started by admin, May 17, 2013.

    
  1. admin

    admin Administrator Staff Member


    Query:
    Is it possible to preset various printers for different reports. For example, Preprinted Invoice is printed in a Dot Matrix Printer and other reports are printed in Laser Jet Printer.

    Yes, this is possible through programmable configuration. We need to set the relevant environment variables prior to printing the Report.

    1) Variable SVPrinterName is the variable which accepts the Printer Name and the content is redirected to the relevant printer.
    2) Variable SVPreview is the variable which accepts a logical value denoting whether to display a print preview or not.
    3) Once the Variables required for Printing are preset, there is no need to bring up the configuration
    screen for the user. Hence, we need to add a logical value Yes subsequent to the Report Name which will skip the Configuration window.

    Similarly, all other configuration variables for various actions need to be identified and preset prior to the necessary action.

    Syntax:

    ACTION : <Report Name> : <Logical Value>
    Where,


    ACTION
    can be either PRINT, MAIL, UPLOAD, EXPORT, PRINT REPORT, MAIL REPORT, UPLOAD REPORT or EXPORT REPORT.

    Report Name
    can be a Report to be rendered. If the Report Name is the current Report, then . (dot) can be used only for Report Specific actions

    Logical Value
    if enabled, configuration window will not appear to the user else will appear

    Below is a sample code snippet to print Trial Balance in HP Universal Printing PCL 6 with Preview enabled:

    [Function: Smp TB Print Config]

    Variable : DSPShowClosing : Logical

    00 : SET : SVPrinterName : "HP Universal Printing PCL 6"
    05 : SET : SVPreview : No
    06 : SET : DSPShowClosing : Yes
    10 : Print : Trial Balance : Yes
    Similarly, if the current Report needs to be printed, one needs to use the action Print Report and in the place of Report Name, one can use a dot (.).

    i.e., In the above code, Label 10 can be rewritten as

    10 : PRINT REPORT : . : Yes

     


  2. chhotibahu4511

    chhotibahu4511 New Member


    Respected Administrator

    I have copied code to print barcode which is working fine, but in which i would like to preset "Barcode Printer Name" for printing, may i kindly seek your assistance for the same.
     


  3. Jagdishkumar

    Jagdishkumar New Member



    Dear Administrator
    Can we set Printer Tray Wise like Copy No.1 For Tray 1 And Copy No.2 For Tray No.2
     
    Aaradhya Chaudhari likes this.


  4. Jagdishkumar

    Jagdishkumar New Member


    Admin

    Thanks
     


  5. laxman

    laxman Member


    Dear Admin Please Give Solution Save Printer & Printer Setting Voucher wise ......
     


  6. TCreat

    TCreat New Member


    Respected Admin
    Can we Sync. entry wise by using yes/no condition
    please give an idea to create it
     


Share This Page