0

Print or Export to PDF components

asked 2009-05-13 18:26:51 +0800

franferri gravatar image franferri
48 2

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.

delete flag offensive retag edit

0 Replies

Sort by ยป oldest newest

answered 2009-05-13 19:15:06 +0800

YamilBracho gravatar image YamilBracho
1722 2

I don't know if it is what you looking for but use Javascript window.print()

link publish delete flag offensive edit

answered 2009-05-15 08:58:36 +0800

kindalu gravatar image kindalu
255

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-05-13 18:26:51 +0800

Seen: 1,071 times

Last updated: May 15 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More