PpowerPoint to XML

A

Aurora I

Hello,
I need to write up a PowerPoint to XML convertor in Visual C++, using
Automation. How can I get started up without having PowerPoint Application
running ? Please point for links, sorce code, books.

Thank you,
Aurora
 
S

Steve Rindsberg

Hello,
I need to write up a PowerPoint to XML convertor in Visual C++, using
Automation. How can I get started up without having PowerPoint Application
running ? Please point for links, sorce code, books.

I don't understand "started up without having PowerPoint application running"

Do you mean that you don't want to automate PowerPoint as part of your
solution? If so, you'll probably have to reverse-engineer the PowerPoint file
format (although I think somebody's got a code library that does this for you
... google "PowerPoint Objects" ... I think that's the right name.
 
A

Aurora I

Steve Rindsberg said:
I don't understand "started up without having PowerPoint application
running"

Do you mean that you don't want to automate PowerPoint as part of your
solution? If so, you'll probably have to reverse-engineer the PowerPoint
file
format (although I think somebody's got a code library that does this for
you
.. google "PowerPoint Objects" ... I think that's the right name.



--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
The converter PPT to XML should be able to read the ppt file and to write up
the correspondent XML document. I don't want to show up the PowerPoint
window when the app runs.
 
S

Steve Rindsberg

The converter PPT to XML should be able to read the ppt file and to write up
the correspondent XML document. I don't want to show up the PowerPoint
window when the app runs.

OK, so running PPT is ok, showing it is not.

Start an instance of PowerPoint as you would normally but don't call the
Application.Visible method.

Then when you open a presentation for processing, use the equivalent of:

oPPTApp.Presentations.Open("filename", False, False, False)

The main thing is to set WithWindow to false. That way PPT won't make the
presentation visible and will stay hidden itself.

The other thing to keep in mind is that PPT is single-instance. If a copy of
PPT is already running when you start to automate it, that's the instance
you'll get a reference to, and it may already be visible.
 

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