I'm trying to use Canvas.showPrintPreview() and the PrintProperties to include more objects to be rendered. I have some icons and TextItems that I would to include.
I've tried to called setIncludeControls() as shown below, but it just makes things worse - it now isn't showing labels.
Am I using this properly?
Also, is it possible to get to show background colors of the widgets? Or any border styling that is set via css?
Thanks!
Chris
I've tried to called setIncludeControls() as shown below, but it just makes things worse - it now isn't showing labels.
Am I using this properly?
Code:
PrintProperties printProperties = new PrintProperties(); String omit[] = printProperties.getOmitControls(); String includes[] = new String[1]; includes[0] = "com.smartgwt.client.widgets.Canvas"; printProperties.setIncludeControls(includes); Canvas.showPrintPreview(components, printProperties, "Flight Plan", new PrintPreviewCallback() { @Override public void execute(PrintCanvas printCanvas, PrintWindow printWindow) { // TODO Auto-generated method stub } });
Thanks!
Chris
Comment