Skip to Content
avatar image
Former Member

how to print page in front and back in scripts

hi,

I want to know to know the how to print a page in front and back.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 24, 2007 at 11:54 AM

    Hello,

    Check this:

    PRINT-CONTROL You can use this command to call certain printer functions from a SAPscript text. Although you cannot enter control characters for the printer directly in your text, you can define a print control via the spool maintenance transaction SPAD that contains the printer commands you want. You can then call a print control using the PRINT-CONTROL SAPscript command. Syntax: /: PRINT-CONTROL name Specify the name of the print control either with or without inverted commas. The print control printed via PRINT-CONTROL should always be a print control created in the customer name area (Zxxx) for the device type used. Use no Sxxx print controls, since their contents may be changed by SAP at any time with a release or driver modification

    For print controls:

    http://help.sap.com/saphelp_nw04s/helpdata/en/b1/fd1042ea8711d18e310000e83dd9fc/content.htm

    http://help.sap.com/saphelp_nw04s/helpdata/en/b1/fd1036ea8711d18e310000e83dd9fc/content.htm

    REgards,

    Vasanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 24, 2007 at 11:59 AM

    HI Ragavendra

    set this

    <b>Print mode is D</b>

    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:

    <b>D </b>The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.

    and other Print mode options are

    <b>Print mode</b>

    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:

    <b>' '</b> Currently active printing mode continues unchanged.

    <b>S </b>The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.

    <b>D</b> The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.

    <b>T </b>The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.

    If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.

    Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.

    See the spool system (transaction SPAD) to check on how your printers are defined.

    The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).

    Regards Rk

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 24, 2007 at 12:03 PM

    hi,

    in script u have to write 'D' in print mode.

    Regards

    Santosh.

    Add comment
    10|10000 characters needed characters exceeded