cancel
Showing results for 
Search instead for 
Did you mean: 

How to print WDA component view?

Former Member
0 Kudos

Hello Experts,

I need to print a view of a WD Component view.
Can you please suggest any ways of doing the same.

Below attached is the view screenshot which is needed to printed.

The requirement is to have an additional button on the component itself, which will popup a window which would contain a PDF format of the view and some additional info regarding the same.

Please suggest some way to tackle this.

Thanks in advance.

Regards,

Sanket.

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Sanket,

You can either go with screen print option, which prints whatever visible in the current window, or

go with adobe forms and design as per your requirement and print it.

Please refer to my answer in the below threads

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thank you for your quick response.

But I first want to display that particular page in a popup & then if user wants to print then only he can proceed with the same.

Regards,
Sanket.

ramakrishnappa
Active Contributor
0 Kudos

Hi Sanket,

Yes, you display that particular page in a pop up window.

Create a button "Print" in pop up window and on action, go ahead with either of below option

Option 1: print whole page using print application option ( here no need of designing it, it just prints visible area of current page, note it also prints buttons as well )

Logic:

data:

l_api_componentcontroller type ref to if_wd_component,

l_appl type ref to if_wd_application.

  l_api_componentcontroller = wd_comp_controller->wd_get_api( ).

l_appl = l_api_componentcontroller->get_application( ).

l_appl->print_page( ).

Option 2: Design adobe form and call the adobe form on action of PRINT button

Regards,

Rama

Answers (0)