cancel
Showing results for 
Search instead for 
Did you mean: 

ITS 6.1 : Printing the contents in a container in webgui

Former Member
0 Kudos

Hai All,

I have a module pool program which displays, employees details with there photo in a container. I used method "CALL METHOD html_control->execwb." to print the content within the container. The program works fine when i run the program in SAP gui. I have created the transaction code as "SAP GUI for HTML"

The problem is we are using ITS server 6.1, when i run the same program in webgui, the print functionality is not working. The reason being the above method is related to OLE, which will not work in "SAP GUI FOR HTML".

We can print the content of the container by right clicking whithin the container and selecting print. Is it possible to have that functionality by clicking a button in the screen. That is when the user clicks a button in the screen the content of the container should be printed.

Please let me know, is there any solution for this.

Thanks & Regards,

H.K.Hayath Basha.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member228142
Active Contributor
0 Kudos

Hi Hayath,

this method is Windows only. Neither webgui nor java gui support the method because it based on OLE.

But you can insert a link in the HTML and execute the print method of the window object when clicking on the link.

Example:

<html><head><title>Test</title>

</head><body>

<a href="javascript:window.print()">Print this page</a>

</body></html>

Regards,

Klaus

P.S.: I would recommend to upgrade to ITS 6.20. ITS 6.10 is no longer supported by SAP and SAP will refuse any OSS message regarding ITS 6.10.