karan788 posted this 13 August 2014
Hello,
I am using following code to print page. I need to set paperSource = "Tray 3" . But even after setting its value, when i debug script the value of paperSource is "Automatically Select".
Please guide me where i am wrong. Following are my code.
factory.printing.paperSize =
"A5"
factory.printing.paperSource =
"Tray 3"
;
alert(factory.printing.paperSize);
alert(factory.printing.paperSource);
factory.printing.Portrait =
true
;
factory.printing.leftMargin = 0.75;
factory.printing.topMargin = 0.5;
factory.printing.rightMargin = 0.75;
factory.printing.bottomMargin = 0.5;
factory.printing.copies = 1;
factory.printing.Print(
false);
Please guide me where i am wrong.