Hello all,
I am trying out the evaluation version to see if it will suit the needsa of my company. So far it is working nicly to print off the PDSs from a file directory. However, it does not appear to be utilizing the default printers printing preferences which I set in the "Devices and Printers" section.
In my preferences, I set the default paper source to be Tray 2, and an input option to always print the first page of a document from Tray 1. Additionally, I increased the Quality setting to a 1200dpi resolution and maxed the darness value.
When I print the PDFs from my .NET application, they always print every page from Tray 1 and from what I can tell, the dpi resolution is not printing at 1200 dpi either.
Is Aspose capable of utilizing the saved printer preferences on the default printer? If so, how do I get it to do this? If not, can this please be added?
Here is the code I use for those interested:
DirectoryInfo tempDir = new DirectoryInfo(System.Configuration.ConfigurationManager.AppSettings.Get("ExportPath"));
foreach (FileInfo file in tempDir.GetFiles("*.pdf"))
{
PdfViewer viewer = new PdfViewer();
viewer.OpenPdfFile(tempDir + file.Name);
//set attributes for printing
viewer.AutoResize = false; //print the file with adjusted size
viewer.AutoRotate = false; //print the file with adjusted rotation
viewer.PrintPageDialog = false; //do not produce the page number dialog when printing
//create objects for printer and page settings and PrintDocument
System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
System.Drawing.Printing.PrintDocument prtdoc = new System.Drawing.Printing.PrintDocument();
ps.PrinterName = prtdoc.PrinterSettings.PrinterName;
viewer.PrintDocumentWithSettings(ps);
viewer.Close();
}