These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Print page in a dynamic form

suewhitehead
Registered: Jun 3 2008
Posts: 232
Answered

I have a button that will print the Return Authorization page, which is page 4, and all pages after it. But page one of my form might grow to be big enough to add another page, so that page 4 will then be page 5. I can just toss out the extra page, but it would be better if I can change the script to start printing at the Return Authorization page no matter which page number it is.

Currently my script it this:
xfa.host.print(1, "3", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0)

How should I change it?

My Product Information:
LiveCycle Designer, Windows
suewhitehead
Registered: Jun 3 2008
Posts: 232
I figured out my own question. Thought it might help someone else. This script works.

var oRA = xfa.form.resolveNode("$..RATitle");
var nPage = xfa.layout.absPage(oRA);
xfa.host.currentPage = nPage;
xfa.host.print(1, nPage.toString(), (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0)
PetafromOz
Registered: Jun 8 2009
Posts: 230
Excellent, thanks Sue

from way... underground at Parkes - central West NSW - Australia