Skip to Content
author's profile photo Former Member
Former Member

smart form

hi, all

can any body tell me how can i call a smartform in my prog. without printview / print selection screen option

e.g

i made a prog and call a smart form in that .

when i run this prog after putting data in selection screen, it ask for printer device selection screen then i clik on print preview or print butoon then it show report.

so my prob. is i dont want that window come, i take default printer and show report directly.

Thanks,

mukesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2007 at 01:40 PM

    Set the following parameters of the FM interface:

    CONTROL_PARAMETERS-DEVICE = <printer_name>.

    CONTROL_PARAMETERS-NO_DIALOG = 'X'.

    CONTROL_PARAMETERS-PREVIEW = space.

    OUTPUT_OPTIONS-TDDEST = <printer_name>.

    Not sure about the parameters for the printer name (whether you have to set the first one and/or the second one); I also don't remember whether this represents the printer short or long name; just play with it.

    Guenther

    I just double-checked, you'll need to set (at least)

    OUTPUT_OPTIONS-TDDEST = <printer_name> to pass the printer name.

    Message was edited by:

    Guenther Schober

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2007 at 01:51 PM

    Hi,

    If the printer is only one u can add this it to Parameters ans set as Default like below.

    PARAMETERS: V_PRINTER LIKE TSP03D-NAME default 'Printer Name'.

    And then u pass the parameters to following conditions

    OUTPUT_OPTIONS-TDDEST = V_PRINTER.

    OUTPUT_OPTIONS-TDNOPREV = K_X.

    OUTPUT_OPTIONS-TDIMMED = K_X.

    CONTROL_PARAMETERS-PREVIEW = ' '.

    CONTROL_PARAMETERS-NO_DIALOG = K_X.

    If helps please award points.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.