cancel
Showing results for 
Search instead for 
Did you mean: 

Generating PDF from the view layout format in webdynpro

Former Member
0 Kudos

Hi Experts..

I am using EHP-5 version. There is no Adobe live cycle designer installed.

My requirement is to generate a PDF file format , from the view layout as it is appearing.,,

i.e PDF created should be like a screenshot of the view layout.

Plzz suggest....

Thanks in advance...

Accepted Solutions (1)

Accepted Solutions (1)

bradp
Active Participant
0 Kudos

Hi RK,

Not sure if I'm getting your requirement, but if you want to save the contents of a webdynpro screen to a pdf what you can do is use the new functionality in WDA which is in Netweaver 7.02 onwards to be able to convert a view to a printable format.

So if you add a button for eg. "Print" then you could use the following code in your component controller to call a printable popup window.

DATA: lo_component   TYPE REF TO if_wd_component,
          lo_application TYPE REF TO if_wd_application.

  lo_component = wd_this->wd_get_api( ).

  lo_application = lo_component->get_application( ).

  lo_application->print_page( ).

Then, when the printer dialog pops up if you have drivers installed to print to PDF then you can save the page to a PDF file.

Hope that helps you with what you are trying to do.

Cheers,

Brad

Answers (2)

Answers (2)

Abhinav_Sharma
Contributor
0 Kudos

Hi RK,

You can not directly generate the PDF form from the view layout as it is appearing. You have to design the form using Adobe Live Cycle designer.

If you dont have the adobe live cycle, you can create a SMARTFORM based on the view and then later convert it to PDF.

Refer Smartform to PDF Conversion

Cheers!

Abhinav

Message was edited by: Abhinav S

Former Member
0 Kudos

Hi Abhinav,

the link is not working... Please send me any alternate ... meanwhile i will also try.

thanks

Abhinav_Sharma
Contributor
Former Member
0 Kudos
Former Member
0 Kudos

Hi Krishna Reddy,

I need to create a PDF as it is , the View Layout appearing.

The display format and the values should be displayed as it is in view layout, in the PDF Format.

This way.

Former Member
0 Kudos

Hi Krishna Reddy,

I need to create a PDF as it is , the View Layout appearing.

The display format and the values should be displayed as it is in view layout, in the PDF Format.

This way.