Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Print Preview and save to PDF

Former Member
0 Kudos
863

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).

1 ACCEPTED SOLUTION

Former Member
0 Kudos
677

Hi,

The only option you have is to call the smartform twice.

Once to display the SF and once to get the OTF.

Regards,

Srini.

3 REPLIES 3

Former Member
0 Kudos
678

Hi,

The only option you have is to call the smartform twice.

Once to display the SF and once to get the OTF.

Regards,

Srini.

Former Member
0 Kudos
677

Hi,

Check lv_control-no_dialog = lc_x. <-- 'X' "This is the area whether Popup should display or Not


 
 data: 
      lv_control type ssfctrlop,
      lv_options type ssfcompop.
 
 
 lv_control-device     = lc_output. <-- PRINTER
 lv_control-no_dialog  = lc_x. <-- 'X'                          "This is the area whether Popup should display or Not
 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'
 

Regards,

D@s

Former Member
0 Kudos
677

@ Srini

haha! that is what I was thinking also.... I was hoping a better solution will come up...

@ D@s

well it still wont go through the print preview screen....

well thanks anyway.. I guess we can't always get what we want