Home > Net >  About using PDFDocument PDF can't find the printer problem printing
About using PDFDocument PDF can't find the printer problem printing

Time:10-06

 , this two pictures is my demo, when Printing PrintSettings. PaperSize there is no problem, another is the project, is an error" doc. PrintSettings. PaperSize "triggered type" System. Drawing. Printing. InvalidPrinterException "exception, the environment is the same environment, have who help me see where is problem

CodePudding user response:

Each time a NEW this object will be abnormal, continue to run will not installed the printer error

CodePudding user response:

Your Demo and project conflicts

Check out the code

CodePudding user response:

refer to the second floor tangyanzhi1111 response:
your Demo and project conflicts

Check out the code

I wrote a demo and download Spire. Pdf. The DLL with a demo running at the same time is no problem, not a project above, is called the same class, where conflict will cause the conflict

CodePudding user response:

The same computer? Now that suggest there is no default printer, forced to specify a look

CodePudding user response:

reference 4 floor assky124 response:
same computer? Now that suggest there is no default printer, forced to specify a see

Is the same computer, it instantiates PDFdocument out abnormal, when I was forced to specify also need after instantiation,

CodePudding user response:

I deleted all of the projects page, and then to get a page can print, reduction in the delete page actually can print, then others pull down the code from the yards cloud can't print, I myself to pull to the local file deletion is also not line,

CodePudding user response:

PDFDocument may and configuration of ajax have conflict, I dropped the note on ajax code in configuration files, you can find the printer,
  •  Tags:  
  • C#
  • Related