Skip to Content
avatar image
Former Member

ITS 6.1 : Printing the contents in a container in webgui

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 25, 2005 at 02:21 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded