0

How can i print pdf file using ZK-spring

asked 2016-03-15 13:41:13 +0800

SowmyaYenigalla gravatar image SowmyaYenigalla
3 1

Hi,

My requirement is when i click a print button, I need to open a pdf file with print dialogue(print preference window). Please help me out in this.

Thanks in advance Sowmya

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-03-15 14:55:20 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

1 - on click button

2 - open an existing pdf file

3 - open print dialogue to print the pdf

so:

<zk xmlns:w="http://www.zkoss.org/2005/zk/client">
...
    <button label="print me">
        <attribute w:name="onClick"><![CDATA[
            var pdf = window.open('test.pdf',  "_blank");
            pdf.print();
        ]]></attribute>
    </button>
...
</zk>

right?

Giovanni

link publish delete flag offensive edit
0

answered 2016-03-15 13:57:22 +0800

Darksu gravatar image Darksu
1991 1 4

Hello SowmyaYenigalla,

You can find information at the following small talk:

http://books.zkoss.org/wiki/SmallTalks/2014/December/PrintingIn_ZK

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2016-03-15 13:41:13 +0800

Seen: 22 times

Last updated: Mar 15 '16

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