Hello there,
looking at PDF export. In our "reqular" printing, we have modified the PrintFrame.html and CSS to include a "header" with some customer-related info above the listgrid, which is only relevant when printing. So, our "print" handler looks like this:
In my PDF export button i tried doing the same more or less:
Now, it works fine, but the look and feel of the print preview is not applied. I tried moving all styles to skin_styles, to no effect.
So, i'm wondering, is there any way for me to make the PDF export look like the print preview? That would be swell.
(smartgwt pro 6.0)
looking at PDF export. In our "reqular" printing, we have modified the PrintFrame.html and CSS to include a "header" with some customer-related info above the listgrid, which is only relevant when printing. So, our "print" handler looks like this:
Code:
reportGrid.getGroupTree().openAll(); if (headerAssembler != null) { Canvas.showPrintPreview(new Canvas[]{headerAssembler.assemblePrintHeader(), reportGrid}); } else { Canvas.showPrintPreview(reportGrid); }
Code:
reportGrid.getGroupTree().openAll(); Canvas[] pdf = new Canvas[]{headerAssembler.assemblePrintHeader(), reportGrid}; DSRequest requestProperties = new DSRequest(); requestProperties.setAttribute("skinName", "Enterprise"); requestProperties.setAttribute("pdfName", "export"); RPCManager.exportContent(pdf, requestProperties);
So, i'm wondering, is there any way for me to make the PDF export look like the print preview? That would be swell.
(smartgwt pro 6.0)
Comment