Skip to Content
0
Former Member
Mar 07, 2011 at 08:03 AM

Print Preview and save to PDF

177 Views

Hi All---

I have this.

data:

lv_control type ssfctrlop,

lv_options type ssfcompop.

lv_control-device = lc_output. <-- PRINTER

lv_control-no_dialog = lc_x. <-- 'X'

lv_control-getotf = lc_x.

lv_options-tddest = lc_device. <-- 'LOCL'

lv_options-tdnewid = lc_x.

Now i have already implemented to output smartforms into PDF.

FM (smartforms) -> 'CONVERT_OTF_2_PDF' -> 'GUI_DOWNLOAD'

The problem now is I want to first go to its print preview before it convert to pdf. I noticed that I can't print preview when i have lv_control-getotf = lc_x. which I cant convert to pdf if I dont have it. So is there a way to go to it's print preview first before continuing with the code (which is saving into pdf).