Skip to Content
avatar image
Former Member

print preview in smartform

hi all,

hi all,

i have parameters in my driver program as follows:

options-tdcovtitle = 'Shipper :'.

* Set some output options
  control-no_open   = space.
  control-no_close  = space.
  control-device    = 'PRINTER'.
  control-no_dialog = 'X'.
  if p_print = 'X'.
    control-preview   = 'X'.
  endif.
  control-getotf    = ' '.
  control-langu     = sy-langu.
  if not p_tddest is initial.
    options-TDdest    = p_tddest.
  else.
    options-TDdest    = 'LP01'.
  endif.
  options-tdnoprev  = space.
  options-tdcover   = space.
  options-tdcopies  = 1.
  options-tdnewid   = 'X'.
  options-tdimmed   = 'X'.
  options-tddelete  = space.

bu the problem is im unable to see the print preview if the output has more than 1 page.

please helpme.

points rewarded if useful.

thanks,

anupama.

Edited by: deep kammula on Sep 30, 2008 2:59 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 30, 2008 at 01:11 PM

    comment these:

    control-no_dialog = 'X'.
      if p_print = 'X'.
        control-preview   = 'X'.
      endif.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 01:11 PM

    Hi

    Do you mean the printpeview is loaded for document with one page only or u can see only the first page?

    Max

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi,

      if i use one shipment (which has only one line item) and execute, its showing print pre-view but if i use other shipment which has 32 line items then its not showing the print preview and creating the spool. when i check spool its giving an error as spoll 1234565 is empty.

      tried commeting them as well. but not working.

      thanks,

      anupama

  • avatar image
    Former Member
    Jan 07, 2009 at 09:07 AM

    solved

    Add comment
    10|10000 characters needed characters exceeded