shakhawatmollah / gwt-print-it Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gwt-print-it
Automatically exported from code.google.com/p/gwt-print-it
What steps will reproduce the problem?
1. Create a GWT projects that uses MGWT widgets (see
http://code.google.com/p/mgwt/ for more details)
2. Implement gwt-print-it as described in how-to
3. Start application and execute print logic
What is the expected output?
To see a print preview that matches the styling from the original web page.
What do you see instead?
All styles that get injected from MGWT are not considered during in the print
preview.
What version of the product are you using? On what operating system?
GWT 2.4, MGWT 1.2-SNAPSHOT, Google Chrome 22, Windows 7 64 Bit
Please provide any additional information below.
The problem appears only with widgets that inject their styles. Since MGWT
supports multiple platforms (Desktop, Android, iPhone, iPad, ...) and each
platform uses different CSS themes, those styles are injected during runtime.
Therefore the current solution (pass styles via parameter) is not very handy
and can't solve this problem.
Original issue reported on code.google.com by [email protected]
on 16 Nov 2012 at 12:15
DeferredCommand Deprecated. Replaced by Scheduler.scheduleDeferred() because the static nature of this API prevents effective mocking for JRE-only tests.
This replace:
DeferredCommand.addCommand(new Command() {
public void execute() {
printFrame();
}
});
by this :
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
printFrame();
}
});
Original issue reported on code.google.com by [email protected]
on 27 Jun 2012 at 6:20
What steps will reproduce the problem?
1. HorizontalPanel hp = new HorizontalPanel();
Image img = new Image(imageUrl);
img.setSize("300mm", "420mm");
hp.add(img);
Print.it(hp);
What is the expected output? What do you see instead?
The expected output would be that the image gets printed. This works in IE
and FF. In Google Chrome however the contents of GWT that is shown in the
browser is printed
What version of the product are you using? On what operating system?
version r2 ; WinXP, Google Chrome 3.0
Please provide any additional information below.
/
Original issue reported on code.google.com by [email protected]
on 13 Jan 2010 at 9:21
What steps will reproduce the problem?
1. Compile code
What is the expected output? What do you see instead?
Error for StyleElement.TAG and LinkElement.TAG: The field is not visible (not
public).
What version of the product are you using? On what operating system?
GWT 2.4
Original issue reported on code.google.com by [email protected]
on 17 Jul 2014 at 9:34
Some components of the Google Charts API make use of iframes, which are not
being visible in print.
The solution I found to solve that problem was to change Print class (see file
attached).
Original issue reported on code.google.com by [email protected]
on 29 Sep 2011 at 11:38
Attachments:
What steps will reproduce the problem?
1. Use input tags and TextField from GWT to create form fields on a HTML page.
2. set the value of both form fields, use value on input tag and
field.setText() or field.setValue() on GWT widget.
3. print the page using Print.it(). specify the area using an DIV container
which contains the complete form containing both input fields.
What is the expected output? What do you see instead?
I would expect a printed page containing both input fields with the entered
content. Instead i see both input fields, but only the field created by the
input tag contains the entered value, The field created using GWTs
TextField widget is missing the entered content.
What version of the product are you using? On what operating system?
I am using the latest version of Print.it() on GWT 1.7.1 on Linux with
Iceweasel (which is Firefox) 3.0.6
It would be nice if we can print all form fields, those created using the
input tags and those created using GWT widgets.
Thanks, Chris
Original issue reported on code.google.com by [email protected]
on 15 Dec 2009 at 10:24
Missing in the methode printFrame() a reference
@com.applimetier.client.utils.Print::buildFrame(Ljava/lang/String;)('');
public static native void printFrame() /*-{
var frame = $doc.getElementById('__printingFrame');
frame = frame.contentWindow;
frame.focus();
frame.print();
@com.applimetier.client.utils.Print::buildFrame(Ljava/lang/String;)('');
}-*/;
Original issue reported on code.google.com by [email protected]
on 12 Jun 2012 at 2:48
The how-to at the top of the Print.java file should contain for those including
a stylesheet URL when calling Print.it(). Stylesheets are NOT relative to the
JS file compiled by GWT but must be specified relative to the IFrame used by
gwt-print-it.
Original issue reported on code.google.com by [email protected]
on 30 Jun 2011 at 3:48
What steps will reproduce the problem?
1.Download version 1.12
2.Compile gwt project
3.
What is the expected output? What do you see instead?
Compilation Failed at line 256 (varaibles docType and style ar not défined in
'itAll(Element)' méthod.
What version of the product are you using? On what operating system?
Version 1.12
Please provide any additional information below.
Compilation trace :
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
could not parse error message:
br\com\freller\tool\client\Print.java(br\com\freller\tool\clien
symbol : variable docType
location: class br.com.freller.tool.client.Print
itAll(docType, style, DOM.toString(element));
^
could not parse error message:
br\com\freller\tool\client\Print.java(br\com\freller\tool\clien
symbol : variable style
location: class br.com.freller.tool.client.Print
itAll(docType, style, DOM.toString(element));
Original issue reported on code.google.com by [email protected]
on 4 Mar 2013 at 10:15
I trying to print a Portlet, I followed steps given in Print.java. Page is
printing nicely with the styles but textarea and listbox are not populated with
values in the printed paper.
Can anyone help please ?
Original issue reported on code.google.com by [email protected]
on 20 Mar 2014 at 11:41
In Firefox and Chrome, checkboxes and radio buttons were not printing the
correct checked state after user interactions.
Original issue reported on code.google.com by [email protected]
on 7 Dec 2012 at 9:51
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.