c# - Printing with XPSDocumentWritter on an Epson printer PrintQueue -


we have application have print function works on printers except products epson on windows 8. i've manage make minimal sample reproduce problem. call following method, providing full path correct xps file.

private void print(string xpsfilename) {   if (string.isnullorempty(xpsfilename))   {     return;   }    printdialog printdialog = new printdialog();   printdialog.showdialog();   printqueue defaultprintqueue = printdialog.printqueue;    try   {     // seems fail epson printers: no job in spooler, no print ...     printsystemjobinfo xpsprintjob = defaultprintqueue.addjob("print through 'addjob' on printqueue", xpsfilename, false);   }   catch (printjobexception printjobexception)   {     console.writeline("{0} not added print queue.", xpsfilename);     console.writeline(printjobexception.message);   }   catch (exception exception)   {     console.writeline("{0} unknown error:", xpsfilename);     console.writeline(exception.message);   } } 

you see if choose epson printer no job appear in spooler whereas work other printer.

does has idea why it's not printing (the job not appears in spool) ? in real application not use xps file rather use paginator, sample purpose it's simpler , fail ...

thanks help.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -