Skip to Content
0
Former Member
Jan 24, 2011 at 09:43 PM

While executing driver program print preview not working

154 Views

Hi,

In my scenario i need to download the smart form data in PDF format while clicking on print button and while print preview, it should show preview of the smart form data. For my case it was downloading into PDF for both Print and print preview,

I make the settings as

w_cparam-no_dialog = space." Suppressing the dialog box

w_cparam-preview = 'X'. " for print preview

w_cparam-DEVICE = space.

w_cparam-getotf = 'X'.

  • OUTPUT_OPTIONS

w_outoptions-tddest = 'LP01'.

CALL FUNCTION w_fmodule

EXPORTING

CONTROL_PARAMETERS = w_cparam

OUTPUT_OPTIONS = w_outoptions

HEADER = wa_emp

IMPORTING

JOB_OUTPUT_INFO = t_otf_from_fm

TABLES

APPRAISALS = it_emp1

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

If I Comment the , CONTROL_PARAMETERS = w_cparam in the above Function Module the Print preview is Working but the Download to PDF is Become 0 bytes i.e No data is download to PDF .

Thanks,

Prakash.K