cancel
Showing results for 
Search instead for 
Did you mean: 

SAP print option IFRAME

abhishek_nms
Participant
0 Kudos

Hey,

In WD Application we have a IFRAME that renders the WAD Application.

Printing the Document:

I have used the Print provided by SAP . The preview does not render IFRAME content ( Since it is stateless element).

Can you please suggest how to print the content ? Print preview is not mandatory but Printing document is important.

Print code:

  l_api_componentcontroller = wd_comp_controller->wd_get_api( ).

  l_appl = l_api_componentcontroller->get_application( ).

  l_appl->print_page( ).

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Abhishek,

I don't think its possible print the IFRAME contents of  WD application by using WD Print logic.

I suggest you to use print option of BROWSER directly, it should work.

Hope this helps you.

Regards,

Rama

abhishek_nms
Participant
0 Kudos

Thanks Ramakrishnappa for confirming.

Requirement :

In  WDA there are multiple IFRAME each displaying different ( say for example 5 ) WAD applications. Each WAD has Native WAD Print button ( that works fine) but we want to combine all WAD outputs to a Single Document

i.e. in other words print the WD application that has 5 WAD applications as a one single document

For user Experience - Business wants a print button on WDA that calls the Browser Print command.

Approach tried - Browser Printing:

created a another iframe with Print Link, when user clicks on it  it calls the BSP having Java script that calls the Browser Print command. But when we print, it only prints child iframe not the whole document.

how to get the parent document reference in javascript and print ?


or Can you please let us know any other better approaches for Browser printing the whole document ?  (Sap code to call the Browser Print - if possible)

Answers (0)