-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm lost.
I have an application who have a Window width 100%, and height 100% also, and style overflow: auto; then i have the scroll enabled.
Then i have some windows into the main window, this windows have the size of a paper in pixels, each window seams a paper page.
I want to print or export each window in a pdf like a page. or print correctly separated in the browser in pages.
Can zk help me to do this?, now is posible? and in the future, may be is interesting one function like Component.print(), or Component.toPostScript() or .toPDF(), and export.
I need one solution, now I don't have more ideas. I try a lot of thinks but no one is working fine.
Thank you very much.
I don't know if it is what you looking for but use Javascript window.print()
For printing in browser, the developer have to provide their own css for printing.
The behavior of "Print CSS" is different from usual css behavior.
And without firebug's help... so Component.print() is almost impossible
and about the toPDF() or toPostScript(), currently we don't have any plan for it.
but you could use jasperreport to generate the PDF by java code
http://www.zkoss.org/smalltalks/jasperreport/jasperreport.dsp
It means you have to redraw zul to the pdf by yourself.
Anyway, good luck.
If you find better solution plz let me know.
---
I forward the request to sourceforge
https://sourceforge.net/tracker/?func=detail&aid=2792119&group_id=152762&atid=785194
Asked: 2009-05-13 18:26:51 +0800
Seen: 1,071 times
Last updated: May 15 '09