B
Brice
Is it possible to insert HTML formatted text directly into a TextRange for a
Shape object without using Paste Special or any other Clipboard functionality?
We would then like to see the PowerPoint shape take on this HTML formatting
and display accordingly on the slide to the end user.
For example, if we insert the following String in a shape using the
following code:
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes.AddShape(msoShapeRectangle, 0, 0, 250, 140) _
.TextFrame.TextRange.Text = "Here is some <b>test</b>text
<ul><li>list item1</li><li>list item2</li></ul>"
We would like to keep the HTML formatting (and not display the HTML tags as
text). The only workaround that we have so far is to copy the HTML in the
clipboard, and do a Paste as HTML. But this is innapropriate for reliable
automation.
Is there an API to use that keeps HTML formatting?
Thank you.
Shape object without using Paste Special or any other Clipboard functionality?
We would then like to see the PowerPoint shape take on this HTML formatting
and display accordingly on the slide to the end user.
For example, if we insert the following String in a shape using the
following code:
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes.AddShape(msoShapeRectangle, 0, 0, 250, 140) _
.TextFrame.TextRange.Text = "Here is some <b>test</b>text
<ul><li>list item1</li><li>list item2</li></ul>"
We would like to keep the HTML formatting (and not display the HTML tags as
text). The only workaround that we have so far is to copy the HTML in the
clipboard, and do a Paste as HTML. But this is innapropriate for reliable
automation.
Is there an API to use that keeps HTML formatting?
Thank you.