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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |