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?
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)