Why not just use CSS to hide everything you don't want to print?
media=print and display:none should do the job, just hide everything
except the stuff to print. You can do it dynamically in case you need
to allow to print various regions of the application.

On Oct 28, 3:30 am, Mike Dee <mdichiapp...@gmail.com> wrote:
> I really don't like the idea of popping up a new window and then
> feeding it HTML.  In this case it works nicely because the main page
> has HTML in it and the popup simply shows the same HTML but without
> the UI.
>
> However, I can think of situations where there is a celltable with
> data and I want to print the celltable contents - in a printer
> friendly format.  Now, there is no HTML (that could be fed into a
> popup).  That HTML would have to be created.  Remember I want to
> leverage the browser's ability to print HTML.
>
> I guess there are two options:
>
> 1) Clicking a button (to popup the printer friendly window) would have
> to create roughly equivalent HTML (as in the celltable) and feed it
> into the popup window.
>
> OR
>
> 2) Have the popup window do that logic.  This where I was thinking of
> using another module.  But I'm not sure how to do that.  Another idea
> is to simply put the logic in a JSP.  Then I'd need to check on how
> session sharing works between JSP and GWT.
>
> On Oct 27, 12:19 pm, Mike Dee <mdichiapp...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Did that.  Seems to work.  Have to figure out CSS issues.
>
> > Experimenting now with using separate module.
>
> > On Oct 27, 6:55 am, Jeffrey Chimene <jchim...@gmail.com> wrote:
>
> > > On 10/26/2011 9:02 PM, Mike Dee wrote:
>
> > > > It seems easy topopupa new window, but I'm not sure how to stick the
> > > > HTML into it.
>
> > > That's the purpose of the _target attribute in the <form> element.
>
> > > > If Window.open would return a reference to the window,
> > > > I could see a way to do it.
>
> > > Create a JSNI routine that creates a window and returns the handle.
>
> > > > Here is another idea.  I can create another module to the GWT app.
> > > > It's sole purpose is to handle printing.
>
> > > Whatever.
>
> > > Bueno Suerte,
> > > jec

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

Reply via email to