Re: Printer.Print and underscore character
- From: "Mike Williams" <mikea@xxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 22:24:09 +0100
"Tim Rude" <timrude@xxxxxxxxxxxxxxxxxx> wrote in message news:uCikLR%23xHHA.3956@xxxxxxxxxxxxxxxxxxxxxxx
One problem with TextOut as shown in the sample code you
posted is that it doesn't update the Printer.CurrentX and
CurrentY properties.
Yes. I knew that. But the purpose of my post was merely to point out the problem with Printer Underline in Vista and to suggest a way around it. I assumed that everyone would be able to sort out the updating of the coordinates themselves. But of course your post is very welcome anyway.
Here's a subroutine that uses the TextOut and plays
nicely with subsequent Printer.Print calls:
Yes. That should work fine. It will not be totally accurate of course with respect to the x xoordinate on most printers under certain conditions (printing a large number of separate small items on a single line, for example, to printers that use 300 or 600 dpi) but it will be quite close. The error will certainly be just a fraction of one percent in most cases, and will not really be much of a problem unless you are doing something a bit special.
Mike
.
- References:
- Printer.Print and underscore character
- From: Andy
- Re: Printer.Print and underscore character
- From: Stefan Berglund
- Re: Printer.Print and underscore character
- From: Andy
- Re: Printer.Print and underscore character
- From: Mike Williams
- Re: Printer.Print and underscore character
- From: Tim Rude
- Printer.Print and underscore character
- Prev by Date: Re: VB6 - why isnt a straight Win32 DLL offered as a project type?
- Next by Date: vb6 WebBrowser control on Vista
- Previous by thread: Re: Printer.Print and underscore character
- Next by thread: Why does Tab() not work correct?
- Index(es):
Relevant Pages
|