Friday, May 05, 2006

.NET PrintPreviewDialog very slow


I was having a problem with PrintPreviewDialog.ShowDialog() taking 10s of seconds to show any output. I did a single step from the ShowDialog() line and none of my code was in the way -- it took ~10 seconds to get to the first line of my PrintPageEventHandler. After some googling, I tried changing default printers from my network printer to PDFCreator and voila, proplem solved.


So the moral of the story is that if PrintPreviewDialog.ShowDialog() spends an inordinate amount of time just getting to your print routines, it's probably got something to do with the Windows print driver and not your code.


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?