Re: Printer.Print and underscore character

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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


.



Relevant Pages

  • Re: Should I now just go out and buy a Canon?
    ... his only purpose in this group is to promote OEM ... the ip4300 is an obsolete model. ... generally bought my printers at the end of the product run when they were on ... bad price considering that the ink carts alone would cost more! ...
    (comp.periphs.printers)
  • SNMP search for printers?
    ... you what the purpose of this scan you think it might ... What I see in common here is printers. ... world's premier technical IT security event! ... This event will sell out. ...
    (Incidents)
  • Re: Problem With Printouts
    ... printers, HP D4260 and I'm well within the 1/2" border ... You should instead set all your print positions using the CurrentX and CurrentY properties. ...
    (microsoft.public.vb.general.discussion)
  • SNMP search for printers?
    ... you what the purpose of this scan you think it might ... What I see in common here is printers. ... SBC Yahoo! ... world's premier technical IT security event! ...
    (Incidents)
  • Re: [opensuse] HP only prints on HP paper
    ... A simple conductance test could server the purpose. ... Photo paper is different on each side. ... drivers for a number of printers, in particular when the maker doesn't ... arms have prepared their own downfall by doing so."--Adolf Hitler ...
    (SuSE)