2011 Mar 07 8:03 AM
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).
2011 Mar 07 8:08 AM
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.
2011 Mar 07 8:08 AM
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.
2011 Mar 07 8:14 AM
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
2011 Mar 07 8:26 AM
@ 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