Visual Basic - text over graphics - TechRepublic
General discussion
December 20, 2002 at 09:28 AM
txitguy

Visual Basic – text over graphics

by txitguy . Updated 23 years, 6 months ago

Hello,

I asked this question, found the answer myself, and figured I’d post it here just in case it would be of use to someone else.

—–Original Question—–
I am trying to print a relatively simple grid, and then put text in the cells (numeric, Arial, Bold, size 26). It works perfectly in a picture box control, but when I use the printer object the characters have an opaque white border that erases part of the underlying grid (and portions of neighboring characters).

Drawing thegrid last doesn’t help, because it erases all the text underneath it. So, how do I make the white space around the font transparent? Printer.FontTransparent = True doesn’t do it.

—–Solution (yes, it works … tested it)—–
Check Microsoft Knowledge Base Article 145726 (http://support.microsoft.com/default.aspx?scid=KB;en-us;q14 5726)

Merry Christmas all,
Ben

This discussion is locked

All Comments