Hello Geeks,

I am using this link for Print Widgets.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63

I have modified a method in Print.java
/**
         * This method will be called when you pass Widget with style.
         * @param style
         * @param uiObjects
         */
        public static void it(String style, UIObject...uiObjects) {
                StringBuffer objString= new StringBuffer();
                for(UIObject obj: uiObjects)
                                objString.append(obj.toString());
                        it(style, objString.toString());
        }

and I am passing

String style ="<link rel='styleSheet' type='text/css' href='css/
style.css'>" +
                "<link rel='styleSheet' type='text/css' 
href=css/gwtcontrols.css'>"
                                        +"<style type='text/css' media='print'>"
                                        + "@MEDIA print {"
                                        + ".noPrint {display:none;} "
                                        + ".text-justify-wrap{text-align: 
justify; word-wrap: break-
word;}"
                                        + "}"
                                        + "</style>";


Print.it(style,new PrintLayout().createPrintHeader().getWidget(0),
                                                subMainPanel.getWidget(),
                                                new 
PrintLayout().createPrintFooter().getWidget(0));

Here, PrintLayout class contains methods which generates Header and
Footer Widgets.

Using this I am getting print on Beginning and End of first and last
page respectively.

But, Is it possible to print header and footer on each page. How would
I identify Page Break in Widget's HTML.

Thanks
Hardik Mishra

-- 
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