Dynamic PDF wit one text field (Textfeld1) and one Print button.
The Print button executes following printscript:
for (var i=1; i<=3; i++) {
Textfeld1.rawValue = ("number " + i);
xfa.layout.relayout();
xfa.form.recalculate;
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
};
The printer prints three pages, but on each of these the value of the textfield is "number 3".