Printing Problems

G

Guest

I have built an application for a client that includes printing functionality. I have produced some code that uses the System.Drawing.Printing classes to output a table that I have drawn, and you can preview and print the document. The preview and printing works perfectly from my machine (running XP Proffessional), and also from other machines (also running XP Proffessional) to different printers (both networked, and non-networked)

However, we have tested the program on some of the client machines (some running Windows 2000 Proffessional, some running Windows NT), and there is a problem with the printing. Text (rendered using Graphics.DrawString) is not being printed in the correct positions, and is sometimes not even on the page. Also, in some cases, it doesn't print the text correctly, and it appears with all characters in one place on top of each other. Most of the text prints exactly as intended (especially any numbers, and anything in capitals), as does all the lines that make up the table, so it seems very inconsistent. To cap it all, the Print Preview is rendering perfectly, and offers no indication as to why it is not printing correctly. The machines print from other applications correctly (not .NET)

I have a feeling that this might be driver related. Has anyone seen anything like this before, and hence are able to shed any light?

Many Thank
Mark
 
R

Ron Allen

Mark,
There have been problems printing to printers with old drivers that
don't support Unicode characters. My old Lexmark Optra was one and loading
the latest driver from the manufacturer fixed that.

Ron Allen
Mark said:
I have built an application for a client that includes printing
functionality. I have produced some code that uses the
System.Drawing.Printing classes to output a table that I have drawn, and you
can preview and print the document. The preview and printing works perfectly
from my machine (running XP Proffessional), and also from other machines
(also running XP Proffessional) to different printers (both networked, and
non-networked).
However, we have tested the program on some of the client machines (some
running Windows 2000 Proffessional, some running Windows NT), and there is a
problem with the printing. Text (rendered using Graphics.DrawString) is not
being printed in the correct positions, and is sometimes not even on the
page. Also, in some cases, it doesn't print the text correctly, and it
appears with all characters in one place on top of each other. Most of the
text prints exactly as intended (especially any numbers, and anything in
capitals), as does all the lines that make up the table, so it seems very
inconsistent. To cap it all, the Print Preview is rendering perfectly, and
offers no indication as to why it is not printing correctly. The machines
print from other applications correctly (not .NET).
I have a feeling that this might be driver related. Has anyone seen
anything like this before, and hence are able to shed any light??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top