-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everyone,
I am currently trying to generate a printable report using a zul page.
I generate a couple of DIVs using zk Grid and Labels. Everythink seemed fine from the internet browser, until I tryed to print the page with a pdf generator.
As I was saying, from the internet browser looks fantastic, but when I print to pdf then the Grids appear to disconfigure their width, so from my 2-column grid (in zul) I only see the left column in the pdf. So it looks hideous!
I think the possible solution would be to use a ZHTML and generate the printable version in HTML and paste it.
Any opinions?
Thank you!
judacoor
PS. I tryed with the jasper reports plugin, but it is a little too complicated for me... :(
Thanks for you reply!
I'm using ZK 3.6
The code is basically this:
1. Generate a Div[] with all the info I need, one of them is the following (Using labels I build the rows, then a grid, then I put the grid into a div and return it)
Grid grid = new Grid(); Columns cols = new Columns(); Column col1 = new Column(); col1.setWidth("40%"); cols.appendChild(col1); cols.appendChild(new Column()); grid.appendChild(cols); grid.appendChild(rws); Div theDiv = new Div(); theDiv.appendChild(grid); return theDiv;
<?init class="npBO.support.SecurityCheck"?> <zk> <window id="impHis" use="npBO.imp.ImpHis" border="none" width="99%"> <vbox id="centerVbox" width="99%"/> </window> </zk>
centerVbox.appendChild((Div)result[0]);
Hi
I heard this kind of problem on Safari, which browser will cause your problem ? or All browser has the same problem?
Asked: 2010-03-29 19:16:30 +0800
Seen: 382 times
Last updated: Mar 30 '10