Insert from file via automation looses formatting

T

Tim Witort

I am building presentations in PowerPoint 2003 from scratch
using automation. I have a dozen or so "template" slides
which are presentations each containing a single slide. To build
the desired presentation, my program uses automation to
startup and instance of PowerPoint, creates a new presentation,
then uses the InsertFromFile method to insert certain combinations
of the "template" slides into the new presentation. The slides
are added to the new presentation, however the formatting gets
lost. When doing this interatively in PowerPoint itself, there
is a "Keep source formatting" option in the Insert From Files
dialog. Is there any way to achieve the same thing when
using automation? There is no "keep source formatting" argument
in the InsertFromFile method. Is there an option somewhere else
that can be toggled to get this to work?

Thanks for any ideas,
-- TRW
_______________________________________
t i m
a t
w i t o r t d o t c o m
_______________________________________
 
T

Tim Witort

Shyam Pillai seemed to utter in
Take a look at this article:
Copy slides with source formatting
http://skp.mvps.org/pptxp001.htm

Thanks, Shyam. That was perfect. Rather than using the InsertFromFile
method, I switched to Copy and Paste and applying the Design and ColorScheme
of the pasted slide.

-- TRW
_______________________________________
t i m
a t
w i t o r t d o t c o m
_______________________________________
 

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