Hi I am coding using Visual C#.

I can add a Word 2007 document as a template to the documents collection
like this:

Word.Application w_app;
Word._Document odoc;

w_app = new Microsoft.Office.Interop.Word.Application();
odoc = w_app.Documents.Add(ref file, ref missing, ref
missing, ref objFalse);

I want to do the same for PowerPoint 2007. The Presentation.Add() method
does not add a presentation template. How can I do this?

Lucy

Re: Adding a presentation template to the presentations collection (C# by Steve

Steve
Wed Oct 01 13:07:04 CDT 2008

In article <3B30D9FE-9AC7-4488-8D8E-A8DBEA7FC90A@microsoft.com>, Lucy wrote:
> Hi I am coding using Visual C#.
>
> I can add a Word 2007 document as a template to the documents collection
> like this:
>
> Word.Application w_app;
> Word._Document odoc;
>
> w_app = new Microsoft.Office.Interop.Word.Application();
> odoc = w_app.Documents.Add(ref file, ref missing, ref
> missing, ref objFalse);
>
> I want to do the same for PowerPoint 2007. The Presentation.Add() method
> does not add a presentation template. How can I do this?

You wouldn't, exactly. To create a template, you'd add a new element to the
presentations collection then save it as a template.

That doesn't feel like quite the answer you're after, somehow.

What do you want to accomplish here?

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================