Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
Hi Jan, This is browser/OS dependable. Regards, Freller Em segunda-feira, 17 de setembro de 2012 14h29min04s UTC-3, Jan Przybylo escreveu: > > I print big form that has fixed dimensions. If I'd use Letter parer size > it should fit in 4 pages (2 pages wide and 2 pages high). > I already started using PrintIt class (gwt-print-it) and it solves most > basic problems for me. > But when I try to print whole big form it only prints top left as the 1st > page and top bottom as the 2nd page leaving the right side not printed. > > Does anyone know proper way of printing wide big pages? > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NO6SWr5S8iMJ. 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.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
Have You tried https://hrapp1.secep.net/HR/cyberobjects/CyberObjects.html?LOADTABLENAME=PEOPLE&LOADTABLEGROUP=PEOPLE&LOADTABLEACTION=GET&ID=20798#>" onclick="print(); return false;">Print Using javascript print function E On Thu, Sep 20, 2012 at 7:46 AM, Jeffrey Chimene wrote: > On 09/18/2012 06:02 PM, Jan Przybylo wrote: > > no, I don't want to print double-sided document. > > > @media css has nothing to do with double-sided printing. > > Cheers, > jec > > let me explain it: > imagine you have empty page with just one big image inside 'body' element: > > > > > lets say it looks like this: > > <http://why.net.pl/tmp/0.png> > > and you want to print WHOLE image. So you'd expect your printer to print > something like this: > > <http://why.net.pl/tmp/1_.png> > > but instead of this I'm getting something like this printed: > > <http://why.net.pl/tmp/2_.png> > so it's not whole image. > of course my problem is not about image but very big HTML form that has > fixed width and height. This form cannot be resized. Fields on this form > cannot be positioned differently, they are positioned with absolute > positioning and they have to stay in their places. > So my question is: >what do I have to do in order to print wide elements that won't fit in > one page (when it comes to element's width)? > > as I previously mentioned I already use gwt-print-it. > > > > > > W dniu wtorek, 18 września 2012 16:36:45 UTC-4 użytkownik jchimene > napisał: >> >> Are you using @media css? >> http://www.w3.org/TR/CSS2/**page.html#page-selectors<http://www.w3.org/TR/CSS2/page.html#page-selectors> >> >> On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo wrote: >> >>> I print big form that has fixed dimensions. If I'd use Letter parer size >>> it should fit in 4 pages (2 pages wide and 2 pages high). >>> I already started using PrintIt class (gwt-print-it) and it solves most >>> basic problems for me. >>> But when I try to print whole big form it only prints top left as the >>> 1st page and top bottom as the 2nd page leaving the right side not printed. >>> >>> Does anyone know proper way of printing wide big pages? >>> -- >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/O6LWSBf8EE0J. > 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. > > > -- > 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. > -- 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.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
On 09/18/2012 06:02 PM, Jan Przybylo wrote: > > no, I don't want to print double-sided document. > @media css has nothing to do with double-sided printing. Cheers, jec > > let me explain it: > imagine you have empty page with just one big image inside 'body' > element: > > > > > lets say it looks like this: > > <http://why.net.pl/tmp/0.png> > > > and you want to print WHOLE image. So you'd expect your printer to > print something like this: > > <http://why.net.pl/tmp/1_.png> > > but instead of this I'm getting something like this printed: > > <http://why.net.pl/tmp/2_.png> > > so it's not whole image. > of course my problem is not about image but very big HTML form that > has fixed width and height. This form cannot be resized. Fields on > this form cannot be positioned differently, they are positioned with > absolute positioning and they have to stay in their places. > So my question is: >what do I have to do in order to print wide elements that won't fit > in one page (when it comes to element's width)? > > as I previously mentioned I already use gwt-print-it. > > > > > > W dniu wtorek, 18 września 2012 16:36:45 UTC-4 użytkownik jchimene > napisał: > > Are you using @media css? > http://www.w3.org/TR/CSS2/page.html#page-selectors > <http://www.w3.org/TR/CSS2/page.html#page-selectors> > > On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo > > wrote: > > I print big form that has fixed dimensions. If I'd use Letter > parer size it should fit in 4 pages (2 pages wide and 2 pages > high). > I already started using PrintIt class (gwt-print-it) and it > solves most basic problems for me. > But when I try to print whole big form it only prints top left > as the 1st page and top bottom as the 2nd page leaving the > right side not printed. > > Does anyone know proper way of printing wide big pages? > -- > > > -- > You received this message because you are subscribed to the Google > Groups "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/O6LWSBf8EE0J. > 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. -- 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.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
no, I don't want to print double-sided document. let me explain it: imagine you have empty page with just one big image inside 'body' element: lets say it looks like this: <http://why.net.pl/tmp/0.png> and you want to print WHOLE image. So you'd expect your printer to print something like this: <http://why.net.pl/tmp/1_.png> but instead of this I'm getting something like this printed: <http://why.net.pl/tmp/2_.png> so it's not whole image. of course my problem is not about image but very big HTML form that has fixed width and height. This form cannot be resized. Fields on this form cannot be positioned differently, they are positioned with absolute positioning and they have to stay in their places. So my question is: what do I have to do in order to print wide elements that won't fit in one page (when it comes to element's width)? as I previously mentioned I already use gwt-print-it. W dniu wtorek, 18 września 2012 16:36:45 UTC-4 użytkownik jchimene napisał: > > Are you using @media css? > http://www.w3.org/TR/CSS2/page.html#page-selectors > > On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo > > > wrote: > >> I print big form that has fixed dimensions. If I'd use Letter parer size >> it should fit in 4 pages (2 pages wide and 2 pages high). >> I already started using PrintIt class (gwt-print-it) and it solves most >> basic problems for me. >> But when I try to print whole big form it only prints top left as the 1st >> page and top bottom as the 2nd page leaving the right side not printed. >> >> Does anyone know proper way of printing wide big pages? >> -- >> >> > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/O6LWSBf8EE0J. 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.
Re: printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
Are you using @media css? http://www.w3.org/TR/CSS2/page.html#page-selectors On Mon, Sep 17, 2012 at 12:29 PM, Jan Przybylo wrote: > I print big form that has fixed dimensions. If I'd use Letter parer size > it should fit in 4 pages (2 pages wide and 2 pages high). > I already started using PrintIt class (gwt-print-it) and it solves most > basic problems for me. > But when I try to print whole big form it only prints top left as the 1st > page and top bottom as the 2nd page leaving the right side not printed. > > Does anyone know proper way of printing wide big pages? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/Nbf7cUYFL2cJ. > 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. > -- 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.
printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all
I print big form that has fixed dimensions. If I'd use Letter parer size it should fit in 4 pages (2 pages wide and 2 pages high). I already started using PrintIt class (gwt-print-it) and it solves most basic problems for me. But when I try to print whole big form it only prints top left as the 1st page and top bottom as the 2nd page leaving the right side not printed. Does anyone know proper way of printing wide big pages? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Nbf7cUYFL2cJ. 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.
Problems with keyboard events+MenuItem+gwt-print-it
Good morning everyone! I'm having problems with updating the look of MenuItem smartgwt. I'm leaving the subitems disabled and enabled dynamically, but the look is not, has problems, only updates the look when the cursor is over the icon, but needs to be updated to access the menu, follow what I'm trying to do: 2 subitems begin disabled and are only able to access another sub-item, but in doing so enabled this subsection which sets should be disabled. They are disabled but the bigger problem is the question that is not dynamic visual ... How do I pose to fix it? The other problem is concerned a repetition of events from the keyboard, how can I do to run a command only while precione is the shortcut key that I generated? HandlerRegistration logHandler = Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { NativeEvent ne = event.getNativeEvent(); if (ne.getCtrlKey() && (ne.getKeyCode()=='l' || ne.getKeyCode()=='L')) { ne.preventDefault(); DeferredCommand.addCommand(new Command() { @Override public void execute() { loggerWindow.show(); } }); } } }); And the last problem is with the gwt-print: cmo do I print full pages in firefox? They are coming out blank! package br.com.freller.tool.client; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.DeferredCommand; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.UIObject; import com.google.gwt.user.client.Timer; public class Print { /** * If true, use a Timer instead of DeferredCommand to print the internal fram */ public static boolean USE_TIMER = false; /** * Time in seconds to wait before printing the internal frame when using Timer */ public static int TIMER_DELAY = 2; public static native void it() /*-{ $wnd.print(); }-*/; public static void it(UIObject obj) { it("", obj); } public static void it(Element element) { it("", element); } public static void it(String style, UIObject obj) { it(style, obj.getElement()); } public static void it(String style, Element element) { it("", style, element); } public static void it(String docType, String style, Element element) { it(docType, style, DOM.toString(element)); } public static void it(String docType, String style, String it) { it(docType +"" +"" +"" +"" +style +""+"" +it +""+ ""); } public static void it(String html) { try { buildFrame(html); if (USE_TIMER) { Timer timer = new Timer() { public void run() { printFrame(); } }; timer.schedule(TIMER_DELAY * 1000); } else { DeferredCommand.addCommand(new Command() { public void execute() { printFrame(); } }); } } catch (Throwable exc) { Window.alert(exc.getMessage()); } } public static native void buildFrame(String html) /*-{ var frame = $doc.getElementById('__printingFrame'); if (!frame) { $wnd.alert("Error: Can't find printing frame."); return; } var doc = frame.contentWindow.document; doc.open(); doc.write(html); doc.close(); }-*/; public static native void printFrame() /*-{ var frame = $doc.getElementById('__printingFrame'); frame = frame.contentWindow; frame.focus(); frame.print(); }-*/; } Thanks! -- 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-tool...@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.
Re: GWT Print
hello abrahim- this is not GWT issue it is CSS issue, kindly check you Css file you added on grid thanks Ahm -- Forwarded message -- From: abhiram Date: Wed, Jun 16, 2010 at 6:33 AM Subject: GWT Print To: Google Web Toolkit Hi, I have been using the standard GWT printing methodology but I see that the border lines and the grid lines get missed out in the print. And the final printout only has the texts without any decorations. Can someone suggest a nice GWT Print logic where the grids/scrollTables appear with the borders and all ? 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 google-web-tool...@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. -- 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-tool...@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.
GWT Print
Hi, I have been using the standard GWT printing methodology but I see that the border lines and the grid lines get missed out in the print. And the final printout only has the texts without any decorations. Can someone suggest a nice GWT Print logic where the grids/scrollTables appear with the borders and all ? 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 google-web-tool...@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.
Re: Quick question on GWT Print
Hi Abhiram, you can set an id with jsni and then use it from your java code. See http://code.google.com/webtoolkit/doc/latest/DevGuideUiDom.html under "Finding an element in the DOM" for an example. Hope this helps. kathrin On Wed, Mar 31, 2010 at 4:03 PM, abhiram wrote: > Hi all, > > I am trying to use Print class for printing the contents of a > particular Popup Panel. > >I believe, i need to use the > > Print.it(DOM.getElementById("myId")); > > code for this functionality. But I am not able to set the Id for > the panel. Can someone please send me the code to set the id for a > particular element? > > 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 google-web-tool...@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. > > -- 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-tool...@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.
Re: Quick question on GWT Print
.setId(""); maybe. On Mar 31, 4:03 pm, abhiram wrote: > Hi all, > > I am trying to use Print class for printing the contents of a > particular Popup Panel. > > I believe, i need to use the > > Print.it(DOM.getElementById("myId")); > > code for this functionality. But I am not able to set the Id for > the panel. Can someone please send me the code to set the id for a > particular element? > > 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 google-web-tool...@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.
Quick question on GWT Print
Hi all, I am trying to use Print class for printing the contents of a particular Popup Panel. I believe, i need to use the Print.it(DOM.getElementById("myId")); code for this functionality. But I am not able to set the Id for the panel. Can someone please send me the code to set the id for a particular element? 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 google-web-tool...@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.