cancel
Showing results for 
Search instead for 
Did you mean: 

print preview in smartform

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

comment these:

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

Answers (2)

Answers (2)

Former Member
0 Kudos

solved

Former Member
0 Kudos

Hi

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

Max

Former Member
0 Kudos

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