locked
slow printing on windows server 2008 x64 RRS feed

  • Question

  • Hello,

    I am trying to print in an ASP.Net website using the code below and the printing is VERY slow.  It takes about 5 minutes for the first document but then subsequent docs are printed without delay:

     

    The printer is Xerox 5645.  The server OS on which asp.net website is hosted is win 2008 x64.

     

    Thanks

    PrintDocument document = new PrintDocument();
    
    document.PrinterSettings.PrinterName =
    
    Settings.PrinterName;
    
    document.PrintPage += delegate(object sender, 
    
    PrintPageEventArgs e) 
    {
    
     e.Graphics.DrawString(barcode, new Font("Arial", 10),  Brushes.Black, 5, 45); 
    
     e.Graphics.Flush();
    
    };
    
    
    document.Print();
    
    Monday, June 28, 2010 2:12 PM

Answers