Hi,
We are evaluating the software and I have created a small printing application using C#. The problem I am having is that the printing of the pdf file is very slow, it takes more than one minute per page. If I open the file and print it to the same printer using adobe, the speed is ok, it is only when I print it from the C# application. Here is the code I have, I extract it from the samples.
public string PrintWithDialogSpire(string fileToPrint)
{
string PrinterName = _printerName;
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(fileToPrint);
PrintDialog dialogPrint = new PrintDialog();
dialogPrint.AllowPrintToFile = true;
dialogPrint.AllowSomePages = true;
dialogPrint.PrinterSettings.MinimumPage = 1;
dialogPrint.PrinterSettings.MaximumPage = doc.Pages.Count;
dialogPrint.PrinterSettings.FromPage = 1;
dialogPrint.PrinterSettings.ToPage = doc.Pages.Count;
dialogPrint.PrinterSettings.PrinterName = PrinterName;
if (dialogPrint.ShowDialog() == DialogResult.OK)
{
doc.PrintSettings.SelectPageRange(dialogPrint.PrinterSettings.FromPage, dialogPrint.PrinterSettings.ToPage);
doc.PrintSettings.PrinterName = dialogPrint.PrinterSettings.PrinterName;
doc.Print();
return _printerName;
}
else
{
return "Error from printer dialog";
}
I also updated all the printers drivers, but I didn't work. Please help. Thanks.
Sandra.