cancel
Showing results for 
Search instead for 
Did you mean: 

Printing a table from WD

Former Member
0 Kudos

Hi Colleagues,

What is the best way of sending the content of WD table to print?

Thanks in advance,

Aviad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What about exporting the table data into Excel and printing from there?

Bertram Ganz wrote a tutorial on this topic, you find it (somewhere here in SDN.

Armin

Former Member
0 Kudos

Hi Aviad,

Refer "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" by Bertram Ganz. This document will be very much helpful for you in exporting the context data into excel.

You can get the sample code and corresponding documentation from the following link

"Tutorial on Excel Export Using the Web Dynpro Binary Cache - 34"

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on excel export using the web dynpro binary cache - 34.htm

You can also use HSSF API for exporting the context data into excel

"Create an excel file from JAVA using HSSF api" by Prakash Singh

/people/prakash.singh4/blog/2005/03/16/create-an-excel-file-from-java-using-hssf-api

Regards,

Santhosh.C

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Currently there is no way of directly providing a print option from the webdynpro application.

check out these two links, we have already discussed on this part alot !.

Though there is a indirect way of calling the windowsPrint () function through embedding a iframe and calling the print() in the link to URL, it has some limitations.

The best possible solution is to open the content / table with data in a new external window and provide a message /legend stating " To print - Use file menu print option or press on control +P" to invoke the print window

Hope this helps.

If you have still any specific issues do let us know