-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
Hello SowmyaYenigalla,
You can find information at the following small talk:
http://books.zkoss.org/wiki/SmallTalks/2014/December/PrintingIn_ZK
Best Regards,
Darksu
Asked: 2016-03-15 13:41:13 +0800
Seen: 23 times
Last updated: Mar 15 '16
Zk + Spring Security redirect to strange page after login
ZK Spring webflow and flowScope
Spring security doesn't return user inside event listener
ZK Spring 3.1.1 MVVM Use @Scope/@Component or No?
Upgrading from Spring3.1 to 3.1.1 Maven.. pulls in 3.0.x jars... issues
When would I want to use ThreadLocalListener?
ZKoss with springsecurity using database