Skip to main content
New Participant
May 10, 2019
Question

Javascript prints shipping label pdf but wont Auto close using Windows 10

  • May 10, 2019
  • 1 reply
  • 760 views

We use JDA/DLX WMS along with Metapack DM to print shipping labels using Internet explorer 11 & Reader 11, we use a JavaScript file to

print then auto close the pdf print window. This all works fine on Windows 7 but the print window wont close using windows 10.

I have tried many variations of the script file without success, the original script is below.

printDocument=app.trustedFunction( function(vPrinterName) {
app.beginPriv();
var pp = this.getPrintParams();
pp.pageHandling = pp.constants.handling.none;
pp.interactive = pp.constants.interactionLevel.silent;
pp.printerName = vPrinterName;
this.print(pp);
app.endPriv();
}
);

Any help would be much appreciated

This topic has been closed for replies.

1 reply

try67
Braniac
May 10, 2019

What do you mean by "close the Print dialog"? A script can't do that. Either you specify not to show it at all (by setting the interactive property to automatic or silent), or the dialog will appear and the user will have to print the file manually.

PS. I moved your question to the JavaScript forum.

New Participant
May 13, 2019

I don't mean anything by "close the print dialog". I call it a print window co's I'm a dumb Manc .

If you look @ the script it is set to silent & I tried automatic also

Just to clarify, It works in windows 7 but not windows 10

Also add some Rhetoric to my question (unless somebody knows the actual answer) I've tried all the close this close that, true this true that etc etc suggestions without success.

Braniac
May 13, 2019

Please show us what you see, but don’t want to see, in a screen shot. Do NOT try to reply by email with the screen shot, because we won’t see it if you do.