I'm trying to print to a network printer, and it doesn't work for me. If I print to a printer connected directly to the computer, it works correctly. The name of the printer is the one that returns directly to me PrinterSettings.InstalledPrinters. How can I do it? I put the code below:
- Code: Select all
Spire.Pdf.PdfDocument docPDF = new Spire.Pdf.PdfDocument();
docPDF.LoadFromFile(documentPath, Spire.Pdf.FileFormat.PDF);
docPDF.PrinterName = printerName;
docPDF.PrintDocument.Print();
Thank you very much in advance