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...

View Entire Topic
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