Hi All,

   I am trying to print the contents of a textArea. But i am able to
print only the part of the text which is visible and not the ones that
I see when i scroll down. Can someone one tell me the proper print
functionality that needs to be used to actually display the entire
content of the text area (same behaviour is seen in scrollpanel even).

  Right now I am using this functionality.


    native void printx(String s) /*-{

            var win1 = window.open('', 'reportwindow');

            win1.document.open();
            win1.document.write("<head><title>Report</title>");
            win1.document.write("<style> body,td {font-family:sans-
serif;font-size:10pt;}</style>");
            win1.document.write("<script> \r\n")
            win1.document.write("function Print(){window.print()}</
script>")
            win1.document.write("</head><body onload=\"Print()\">");
            win1.document.write(s);
            win1.document.write("</body></html>");
            win1.document.close();
            win1.close();
    }-*/;

public void printIt(String html){



    printx(html);
    }

 Please let me know what is the approach to be followed.

Thanks and regards,
Abhiram

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to