Application Development and Automation 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: 
Read only

to create a pdf file on application server

Former Member
0 Likes
413

Hi Gurus,

I have a requirement where I need to convert spool to pdf and create a file on application server.program will run in background.Now I know how to convert spool to pdf.But by using OPEN DATASET AND TRANSFER DATASET is it possible to create a PDF file on application server.

Points will be rewarded for helpful answer

1 ACCEPTED SOLUTION
Read only

former_member195698
Active Contributor
0 Likes
375

You can directly transfer the data. The only thing is OPEN DATASET in BINARY MODE.

*Downloading PDF file to Application server

open dataset wf_filename for output in binary mode.

loop at tb_lines.

transfer tb_lines-tdformat to wf_filename.

transfer tb_lines-tdline to wf_filename.

endloop.

Regards,

Abhishek

1 REPLY 1
Read only

former_member195698
Active Contributor
0 Likes
376

You can directly transfer the data. The only thing is OPEN DATASET in BINARY MODE.

*Downloading PDF file to Application server

open dataset wf_filename for output in binary mode.

loop at tb_lines.

transfer tb_lines-tdformat to wf_filename.

transfer tb_lines-tdline to wf_filename.

endloop.

Regards,

Abhishek