Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Re: Livecycle Es - Print form in 2 copies

$
0
0

Add a Print Button in your from with Presence = Visible(Screen Only)(If you dont want to Print the Button in form). Then add a textfield at the place where you want to print "Customer Copy/Bank Copy". In my case, I placed a text field at the top right and named it "Documenta".

Then in the click script of print button, add following :

 

 

Documenta.rawValue = "Customer Copy"
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
Documenta.rawValue = "Bank Copy"
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);

 

When you will press Print Button in the form, it will pop up print option 2 times consecutively having printed Customer Copy and Bank Copy, (without having Print Button printed on it).

 

In my Case, I wanted to print either 3 Copies, 2 Copies or 1 Copy(separate print button for each), so in 3 copies, I added 2 same extra lines with rawValue = "Transporter copy". And in 1 copy, I didnt want anything, so I kept only two lines with rawValue = "". You can use as many copies you want.

 

Download file from the link below. Print 2 Copies is pdf xml file(Form), BC is example for Bank Copy and CC is example for Customer Copy.

Livecycle Designer Print 2 Copies - Google Drive


Viewing all articles
Browse latest Browse all 150094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>