Re: How can I get height of text block?

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



If you scroll down to the bottom end of the page in that URL, you'll see
answers. Login is only required for the "expert's" answers. There are other
answers that anyone can see below all the advertising. I'm not a subscriber
either and I get answers from there quite often.

Also, I should have mentioned that the font and other settings are specific
to get the length. It's not dependent on what the text comes in as. In the
Word code we're using now, I set the font to Arial 7, single spaced, 0
spacing before and after paragraphs, text width is set to 1.5 inches by
setting page size and margins. Then I can get the exact height of the text
in inches. That's pretty much wath I need to do in vb.net but without Word.
Height will be based on the same settings font, text width and paragraph
settings. In this respect it's a bit different than the question the user
had on the URL I included.

Keith

"Armin Zingler" <az.nospam@xxxxxxxxxx> wrote in message
news:uAZbh6MwIHA.5472@xxxxxxxxxxxxxxxxxxxxxxx
"Keith G Hicks" <krh@xxxxxxxxxxx> schrieb
I have a client that I wrote an MS Access app for quite a few years
ago where they need to know the height in inches of a block of text
for billing their customers. The MS Access app opens Word in the
background, makes some settings (font, font size, margins, etc.) and
gets the height. It's all worked quite well for 3 or 4 years.

However, the whole thing is going to be redone for use in browsers
in asp.net with vb.net. We want to eliminate the need to use Word
for this. I'd like to write a function in vb.net for this. The whole
thing is going to be run on both Windows and Mac machines. I found
some info here:


http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_2182000
8.html

Login required. Anyway, the size of the text on which device on which
machine using which dpi settings and which font do you want to
calculate? I won't be able to give an ASP.Net specific answer but I
think the questions must be asked first.

but I'm not sure it's the correct approach. I was hoping someone
could point me in the right direction.


Armin



.



Relevant Pages

  • Re: How can I get height of text block?
    ... why do they need the 'hieght' of a text ... I assume it is for reporting and not 'Your text hiegh is 2.4 inches' ... Word code we're using now, I set the font to Arial 7, single spaced, 0 ... Height will be based on the same settings font, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How can I get height of text block?
    ... if you have control of installations on the web server. ... THEY NEED TO KNOW HOW MANY INCHES TALL THE TEXT IS FOR EACH ADVERTISEMENT ... I should have mentioned that the font and other settings are ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How can I get height of text block?
    ... THEY NEED TO KNOW HOW MANY INCHES TALL THE TEXT IS FOR EACH ADVERTISEMENT ... Height will be based on the same settings font, ... thing is going to be run on both Windows and Mac machines. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XP: Cool feature with a weakness
    ... Why did you feel that you had to alter exactly what I said Snit? ... a non-Admin user can alter settings for other users? ... In the case of Black on White/White on Black settings they could as Steve ... the effect does not carry over to the login screen. ...
    (comp.sys.mac.advocacy)
  • Re: XP: Cool feature with a weakness
    ... Why did you feel that you had to alter exactly what I said Snit? ... a non-Admin user can alter settings for other users? ... In the case of Black on White/White on Black settings they could as Steve ... the effect does not carry over to the login screen. ...
    (comp.sys.mac.advocacy)