Given a TextFrame in PowerPoint I would like to convert the content of
the TextFrame into matching HTML without having to save files and read
files.
I still don't understand what that means, really. Perhaps an example of what you mean
would help. Do you want an html page that contains the same text as the text frame, or
an html page that duplicates the text, formatting and all? Or something entirely
different?
Extracting just the portion of html that relates to the specific text frame might or
might not be useful, as so much formatting etc. depends on CSS.
And again, this sounds like a solution to a problem, or at least a possible one. What's
the problem, though?
I found the HTMLProject and HTMLProjectItem objects that I can
use to get HTML from PowerPoint, though I had difficulty getting clear
HTML and not just specific PPT HTML. Also, they only work on a slide
granularity and not on a TextFrame level so performance was not that
good and it was not so easy to find the right subset of the HTML. At
the same time I'm guessing the content of the TextFrame is Unicode
text and that there may be more general conversion tools available or
that some other COM or ActiveX component could be used to get the
HTML. I have not yet found one, though. I did use the HTMLDocument
object from Microsoft HTML Objects library included in visual studio
6.0 but it only took care of breakes in the TextFrame.
Any clearer?
Cheers
Erik
I don't quite understand what you want to end up with.
Can you describe it in more detail? Perhaps explain the problem this is to solve?
"Michael Koerner" <
[email protected]> wrote in message