A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Finding Top & Height of text in PowerPoint shape



 
 
Thread Tools Display Modes
  #1  
Old December 21st, 2004, 07:52 AM
Abhishek
external usenet poster
 
Posts: n/a
Default Finding Top & Height of text in PowerPoint shape

Hi! everybody

I am using PPT XP (Office XP)
I am facing a problem in extracting the height and top of text in a textbox
I am using the the property

sTextRange.Runs(iRuns,1).BoundHeight And
sTextRange.Runs(iRuns,1).BoundTop (where iRuns is a incermental integer)

but this does not give me exact top & height rather it gives me the top &
height of the biggest character in the textbox.
e.g if i have the first character of a line with bigger font size to
emphasixe the top & height of all the characters is given as same as that of
the biggest character.
I need to extract it for each character.

Is there any way out wherein i can find the exact top & height of the
individual characters, even if i get the top it will work for me.

Any help & suggestions would be welcomed

I have posted this same question in office.developer.VBA & also
office.developer.automation forum as well since
i do not know cross-posting to various forums. Any inconvenience is
regretted



Abhishek Bagga
Sikhya Solutions Ltd.
www.sikhya.com
+919815005578


  #2  
Old December 21st, 2004, 06:05 PM
Steve Rindsberg
external usenet poster
 
Posts: n/a
Default

Hi,

I replied in the Office.Developer group but if you'd rather continue the
discussion here, that'd be fine too.


In article , Abhishek wrote:
Hi! everybody

I am using PPT XP (Office XP)
I am facing a problem in extracting the height and top of text in a textbox
I am using the the property

sTextRange.Runs(iRuns,1).BoundHeight And
sTextRange.Runs(iRuns,1).BoundTop (where iRuns is a incermental integer)

but this does not give me exact top & height rather it gives me the top &
height of the biggest character in the textbox.
e.g if i have the first character of a line with bigger font size to
emphasixe the top & height of all the characters is given as same as that of
the biggest character.
I need to extract it for each character.

Is there any way out wherein i can find the exact top & height of the
individual characters, even if i get the top it will work for me.

Any help & suggestions would be welcomed

I have posted this same question in office.developer.VBA & also
office.developer.automation forum as well since
i do not know cross-posting to various forums. Any inconvenience is
regretted

Abhishek Bagga
Sikhya Solutions Ltd.
www.sikhya.com
+919815005578


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerPoint 'Title & vertical text' Layout.. Kym Powerpoint 3 October 17th, 2004 08:23 AM
copying block diagram with text from visio to powerpoint & losing text al Visio 1 July 7th, 2004 11:07 PM
Vertical Text Orientation Paul Anderson [MSFT] Visio 0 May 11th, 2004 05:16 PM
Text boxes-help Jon Peltier Charts and Charting 0 January 26th, 2004 05:46 PM


All times are GMT +1. The time now is 07:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.