Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

printing form multiple time with different footer.

$
0
0

Hello all,

I have a form that needs to be print multiple time but with different text at the bottom of each copie.

 

As an example i would say like when you print a bill there's a copie that comes out with the mention "client copie" and another "merchand copie" and this form has autosize textbox and some subform instance can be add or remove.

 

I figured id just change the text then print the page 4 times.

 

this.parent.PDP.rawValue = "Copie1";

xfa.host.print(1, "0", (xfa.host.numPages - 1).toString(), 0, 0, 0, 0, 0);

this.parent.PDP.rawValue = "Copie2";

xfa.host.print(1, "0", (xfa.host.numPages - 1).toString(), 0, 0, 0, 0, 0);

this.parent.PDP.rawValue = "Copie3";

xfa.host.print(1, "0", (xfa.host.numPages - 1).toString(), 0, 0, 0, 0, 0);

this.parent.PDP.rawValue = "Copie4";

xfa.host.print(1, "0", (xfa.host.numPages - 1).toString(), 0, 0, 0, 0, 0);

 

This works fine if the form is open in acrobat reader but if the pdf is open in IE (or LiveCycle Designer prewview tab) the label text is changed 4 time before the first print thus all 4 copies have the text "Copie4";

 

I though of using a timeout before changing the value of PDP but since i have no way to know how long it would take the user to select the right printer / print each copy i donèt think this would work either.

 

Is there a way i can wait for the printing process of the form to process before having the text change?

 

Thanks


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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