By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,189 Members | 1,370 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,189 IT Pros & Developers. It's quick & easy.

Slow printing of image files when using the ev.Graphics.DrawImage

P: n/a
I am printing jpg files which are on a disk. The file name is selected
from a database and the file is located on the disk and then printed. I
am able to print the file but it takes a long time to do it(between
35-40 seconds). I am posting the code in the print event handler ,
please suggest how i can speed up the printing.btw i am printing to a
network printer.
string name =
piccy = Image.FromFile(@"\\\CShare\Copies\"+name );
this.AutoScrollMinSize = piccy.Size;
int width = (piccy.Width);
int height = (piccy.Height);
ev.Graphics.DrawImage(piccy,ev.Graphics.VisibleCli pBounds);
thank you

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.