Re: Popup windows & printing

2011-11-04 Thread Marcin Biegan
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 wrote: > I

Re: Popup windows & printing

2011-10-27 Thread Jeffrey Chimene
On 10/27/2011 8:30 PM, Mike Dee 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

Re: Popup windows & printing

2011-10-27 Thread Mike Dee
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 pr

Re: Popup windows & printing

2011-10-27 Thread Mike Dee
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 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

Re: Popup windows & printing

2011-10-27 Thread Mike Dee
I say that. It is from back in 2007. The later messages indicate users had problems with it. Don't know if it is supported either. On Oct 27, 3:03 am, Fabricio Pizzichillo wrote: > I found this thread, maybe can help > you.http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.

Re: Popup windows & printing

2011-10-27 Thread Jeffrey Chimene
On 10/26/2011 9:02 PM, Mike Dee wrote: It seems easy to popup a new window, but I'm not sure how to stick the HTML into it. That's the purpose of the _target attribute in the element. If Window.open would return a reference to the window, I could see a way to do it. Create a JSNI routine th

Re: Popup windows & printing

2011-10-27 Thread Fabricio Pizzichillo
I found this thread, maybe can help you. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/eea48bafbe8eed63?pli=1 regards 2011/10/27 Mike Dee > It seems easy to popup a new window, but I'm not sure how to stick the > HTML into it. If Window.open would return a reference to

Re: Popup windows & printing

2011-10-26 Thread Mike Dee
It seems easy to popup a new window, but I'm not sure how to stick the HTML into it. If Window.open would return a reference to the window, I could see a way to do it. Here is another idea. I can create another module to the GWT app. It's sole purpose is to handle printing. The GWT app I'm work

Re: Popup windows & printing

2011-10-26 Thread Jeff Chimene
On 10/26/2011 08:38 AM, Mike Dee wrote: > I was thinking about something like that. In the posts about popup > windows this is seen as a negative because it is tricky to setup > communications between the main window and the popup. But there > really is no communication needed in this case. > >

Re: Popup windows & printing

2011-10-26 Thread Mike Dee
I was thinking about something like that. In the posts about popup windows this is seen as a negative because it is tricky to setup communications between the main window and the popup. But there really is no communication needed in this case. Do you see the popup window as a GWT window or just

Re: Popup windows & printing

2011-10-26 Thread Jeffrey Chimene
On 10/26/2011 1:02 AM, Mike Dee wrote: I have an app that creates reports, which are basically HTML. The reports need to be printed and that is what I'm trying to figure out. I'm porting an older app - that is more of traditional web app. Reports are displayed in a page - with a UI wrapped arou

Popup windows & printing

2011-10-26 Thread Mike Dee
I have an app that creates reports, which are basically HTML. The reports need to be printed and that is what I'm trying to figure out. I'm porting an older app - that is more of traditional web app. Reports are displayed in a page - with a UI wrapped around them. When a user wants to print a re