Get formated shape text

D

Daniel Kirsch

I want to import a shape's text into a HTML document. While I can import
the shapes properties like font size, color aso I just get a plain text
with no formatings from the TextRange object. Is there a way to get the
formated text? Ideally as HTML?

Thanks
Daniel
 
S

Steve Rindsberg

I want to import a shape's text into a HTML document. While I can import
the shapes properties like font size, color aso I just get a plain text
with no formatings from the TextRange object. Is there a way to get the
formated text? Ideally as HTML?

What application are you working with? Sounds PowerPointish. If that's
correct, you'd probably need to iterate through the TextRange.Runs collection
and extract the properties you're interested in and write your own HTML.

A run represents a change of formatting of any sort.
 
D

Daniel Kirsch

Steve said:
What application are you working with? Sounds PowerPointish.

Yes, it's Powerpoint.

If that's
correct, you'd probably need to iterate through the TextRange.Runs collection
and extract the properties you're interested in and write your own HTML.

Thanks for that good hint. I'm going to try that.

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top