Can I " no print " text fields on page 1 and 2 but print them on page 3 code I have below so far
Hi all, I would like to not print Button2 & Text8c on page 1 and 2 but have them print on page 3. At the moment they dont print on page 3 due to noprint is this possible.
Thanks for your help
//select fields & Buttons before Printing.
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
if (f.type=="button") f.display = display.noPrint;
if (f.type=="field") f.display = display.noPrint;
}
//Buttons & fields to not print
getField("Button2").display = display.noPrint;
getField("Text8c").display = display.noPrint;
var pp = this.getPrintParams();
pp.DuplexType = pp.constants.duplexTypes.DuplexFlipShortEdge;
this.print(pp);