Home All Groups Group Topic Archive Search About

How to.. Print vb.net..

Author
31 Jan 2006 1:29 AM
Pete Smith
How to calculate how much space (in pixels) is consumed for a given # of
characters while printing? I have allotted a square area for printing some
text and not sure whether it fits in one line or not. Thank you,

vb.net and Net Framework 1.1.

Pete

Author
31 Jan 2006 10:28 AM
Peter Proost
Hi,

have a look at Graphics.MeasureString

Hope this helps

Greetz Peter


--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

Show quoteHide quote
"Pete Smith" <PeteSmit***@hotmail.com> schreef in bericht
news:eu0ZmWgJGHA.984@tk2msftngp13.phx.gbl...
> How to calculate how much space (in pixels) is consumed for a given # of
> characters while printing? I have allotted a square area for printing some
> text and not sure whether it fits in one line or not. Thank you,
>
> vb.net and Net Framework 1.1.
>
> Pete
>
>