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: 

Getting Print Preview Of Smartform First and then Save PDF file in local PC

ujjwal_kumar1
Explorer
0 Kudos
2,797

Hi,

Can anyone help in getting Print preview of smartform first and then  save smartform as PDF file in local  PC.  I am getting PDF file directly but  user wants to preview first and then convert into  PDF.

Regards,

ujjwal kumar

7 REPLIES 7

former_member188724
Contributor
0 Kudos
948

Hi Ujjwal,

You can see the print preview of the smartform,when you press enter you can convert the spool into otf and save it as pdf. Hope it helps.

Regards,

KS

jogeswararao_kavala
Active Contributor
0 Kudos
948

Hi ujjwal

  • In the driver program, you make the change suggested in line below in the smartform FModlue. i.e.,  in the section.  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

  • Remove the value X from this line.   gs_control_params-no_dialog = 'X'.   Just make it:         
     gs_control_params-no_dialog = ''.
  • With this the Preview Dialog will be restored.
  • Now while viewing the Preview you use command PDF!  in the command line (without /n), and Hit Enter, which would present you the pdf  format of the smartform which you can save on the desktop.

Good luck

KJogeswaraRao

0 Kudos
948

Hi Jogeshwara ,

Thanks for your reply!.

I have tried with it but it doesnot work. I am passing no-dialog as ' ' and get-otf = 'X'.

I am getting Print preview option  but not able to see it . Although When i am not passing get-Otf as 'X', it works fine . Please advice how to do both Print Preview and PDF output.

Regards,

ujjwal

0 Kudos
948

I did not mention anything about get-otf. Re-read my reply and do it accordingly.

0 Kudos
948

Hi Jogeswara,

User doesnot want to use Pdf!.  user wants to  see print preview first and then save print preview in local file as PDF . Please help me in regards of this .

Regards,

ujjwal kumar

Juwin
Active Contributor
0 Kudos
948

Please call Smartform function module twice - one to show the preview and other to generate OTF. From OTF, then you can convert to PDF.

Thanks,

Juwin

0 Kudos
948

Hi Jubin,

It works. Thanks for your reply.