c# and powerpoint

P

Peter

Hi,
i have a problem handeling powerpoint presentations with c# .net.
I have to copy all shapes and slides from an existing presentation to
another.
But when using .copy() and .paste() the formatting is lost.
Also the background and the slide master is not in the new
presentation.
Can anybody give me a little code how to handle this?
I've looked everywhere but found nothing about it.
Thanks a lot!
 
H

Helmut Obertanner

Hello Peter,

i'm not too deep in powerpoint, but if you want to create a new powerpoint
from a template file, the template must have the name "Blank.pot" and must
be at a specific template location.
Hope this helps.

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 
S

Steve Rindsberg

Hello Peter,

i'm not too deep in powerpoint, but if you want to create a new powerpoint
from a template file, the template must have the name "Blank.pot" and must
be at a specific template location.

It needn't be Blank.pot:

Presentations.Open _
FileName:="c:\path\to\yourtemplate.pot", _
Untitled:=msoTrue
 
P

Peter

Thanks so far!

I already managed these things but the problem i have is how to copy an
animation from one page of a presentation to a new presentation.
I need to copy it animation by animation because later i have to make a
slide-show with jpegs from it.
And i already managed this too but i loose all the formatting of the
presentation and only the simple text is coppied.
That's my problem. I need to copy the formatting of each text and
animation and paste it into the new presentation.
 
S

Steve Rindsberg

I already managed these things but the problem i have is how to copy an
animation from one page of a presentation to a new presentation.
I need to copy it animation by animation because later i have to make a
slide-show with jpegs from it.

Sometimes it's far simpler to create a copy of the original presentation and
delete what you don't want rather than try to copy everything you DO want to a
new presentation.
 
P

Peter

The problem is i must copy each animation of a page and make new pages
out of it.
E.g. a page has 3 Animations which appear after mouse click so the new
presentation must have 3 pages with a single animation in every page.
I need this for making a slide show out of jpeg's later.
 
S

Steve Rindsberg

Peter said:
The problem is i must copy each animation of a page and make new pages
out of it.
E.g. a page has 3 Animations which appear after mouse click so the new
presentation must have 3 pages with a single animation in every page.
I need this for making a slide show out of jpeg's later.

It still may be simplest to create three copies of the slide and delete all but
the animations you want. *May* be. ;-)
 

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