drawstring method doesn't work with all printers

  • Thread starter Thread starter Robert in Phoenix
  • Start date Start date
R

Robert in Phoenix

I have been doing some simple tests, based on the code given in the
MSDN example, with additions to select any of the printers available
on my machine.

http://msdn.microsoft.com/library/d...temDrawingPrintingPrintDocumentClassTopic.asp

Everything works just fine on three of our networked printers (Canon
S800, Brother MFC 9700, and Epson C42). But our other networked
printer, a Brother 1440, does not print the text.

It will however, like the others, print a small straight line that I
added, which at least shows we are talking to the printer.

Searching the groups suggests that perhaps the driver needs to
understand Unicode. How can I test if this is the problem with this
printer?

But don't new applications use Unicode anyhow? All normal
applications - Word, Excel, Crystal Reports from VB6 - work just fine
with this printer.

Any other suggestions about what to look for?
 
Thanks for the suggestion to try the Brother 1440 as the default
printer.

I received a response in another group saying that at least one other
developer had seen a problem with the HL-1440, and suggesting that I
try an API method ExtTextOut - haven't done that yet.

Also, Brother suggested that I try the HP IIP driver, and see if that
works, to determine whether the fault is in the driver or elsewhere.
They also have a patch which might help. - haven't had chance to try
that out, because I could only do that out of normal hours (we only
have one 1440, and it is somewhat critical to our day to day
operations!)

I'm posting these suggestions, in case they are helpful to anyone
else.
 
Hi, I have the same problem!

If you set the FontStyle to Bold it seems to print ok.


Font prntFont = new Font("Arial", 10, System.Drawing.FontStyle.Bold);

ev.Graphics.DrawString("Hello", prntFont, Brushes.Black, xPos,
botMargin, new StringFormat());
 
Back
Top