We have a customized print preview page from which the user can print what's shown on the preview page.
This works fine till showing what we want on the preview page. When the printer icon in clicked and the printer is selected to print, it prints nothing on the paper. That is, a blank page is printed without any contents.
The code is
But if I directly pass the VLayout to the Canvas.showPrintPreview, then the printing works fine.
The browser version used are IE 7.0 and FF Latest version.
The SmartClient/SmartGWT Framework is v8.3p_2013-01-16/Pro Deployment 2013-01-16.
Please let us know if we are missing out something here.
Any help is much appreciated.
Thanks in advance
This works fine till showing what we want on the preview page. When the printer icon in clicked and the printer is selected to print, it prints nothing on the paper. That is, a blank page is printed without any contents.
The code is
Code:
PrintProperties printP = new PrintProperties();
printP.setAttribute("Orientation",PageOrientation.PORTRAIT);
Object[] myPrintObjects = new Object[] { content }; // Content is the VLayout to be shown on the Preview screen and printed
PrintWindow pWindow = new PrintWindow();
Canvas.showPrintPreview(myPrintObjects, printP, "Print Preview", null, pWindow, "Print");Code:
Canvas.showPrintPreview(content);The SmartClient/SmartGWT Framework is v8.3p_2013-01-16/Pro Deployment 2013-01-16.
Please let us know if we are missing out something here.
Any help is much appreciated.
Thanks in advance