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

print pdf via cvapi_doc_view

Former Member
0 Likes
1,487

Hi,

i use FM: cvapi_doc_view to show or print some documents.

if the document is an DOC i can show and print. If i have a PDF print is not possible, the pdf will

only be shown.

I use reader with version 10.1.1.

Has anyone an idea? or is there another FM or BAPI?

thanks

Regards Dieter

Hi,

i use FM: cvapi_doc_view to show or print some documents.

if the document is an DOC i can show and print. If i have a PDF print is not possible, the pdf will

only be shown.

I use reader with version 10.1.1.

Has anyone an idea? or is there another FM or BAPI?

thanks

Regards Dieter

4 REPLIES 4
Read only

Former Member
0 Likes
1,134

Hi Dieter.

You can use this method to show or print a local PDF file, using you're local software.

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = path_file "path of the file

operation = 'PRINT' "or OPEN

Have a look at the export parameters.

Hope this help.

Regards.

Emmanuel.

Read only

Former Member
0 Likes
1,134

[]

Read only

former_member182371
Active Contributor
0 Likes
1,134

Hi,

try passing PF_APPTP = '3' to fm CVAPI_DOC_VIEW.

domain APPTP has the following values:

1 Display

2 Change

3 Print

Best regards.

Edited by: Pablo Casamayor on Sep 30, 2011 11:27 AM

Read only

0 Likes
1,134

Hi Pablo,

thanks fpr your answer.

I tried with PF_APPTP = '3' but the pdf will only be displayed.

Regards, Dieter