Hi,
I am trying to invoke silent print in Duplex mode. I am using the below code in the java script file, but still it prints in Simplex mode. Is there any other way of coding it in java script?
function JSSilentPrintDuplex(theDoc)
{
var pp = theDoc.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.DuplexType = pp.constants.duplexTypes.DuplexFlipLongEdge;
var fv = pp.constants.flagValues;
pp.flags |= fv.setPageSize;
theDoc.print(pp);
}
I even tried with the below options also:
pp.DuplexType = pp.constants.duplexTypes.Duplex;
pp.DuplexType = pp.constants.duplexTypes.DuplexFlipShortEdge;
Solution for this is appreciated, Thank You.
It is the only refernece to "duplex" in the JS Api and the example:
Example 2 (duplexMode)
Print booklet in duplex mode, printing only the front pages.
pp.pageHandling = pp.constants.handling.booklet;
pp.booklet.duplexMode = pp.constants.bookletDuplexMode.FrontSideOnly;
this.print(pp);
George Kaiser