Programming an add-in w/ Visual C# .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

OK, I'll try and explain this to the best of my ability. I do PowerPoint for
my church. We have a huge directory of every song that we sing in separate
PowerPoint files. For every Sunday, I insert each song individually. In
order to make it simpler, I'm writing a program using Visual C# .NET that
will ultimately insert each song all at once. How can I make my program work
with PowerPoint? Or, is there any way to add it into PowerPoint?
 
Are the songs all ready on slides or are they in an other format?
 
Yes, they are all ready on slides. I'm just writing a program to insert them
all at the same time so i don't have to go back and find each individual file.
 
Billy Davey said:
Yes, they are all ready on slides. I'm just writing a program to insert them
all at the same time so i don't have to go back and find each individual file.

This should be quite "do-able" but I'd suggest you first do it in VBA within
PowerPoint to get the concept and implementation worked out, then translate to
C# if you feel it's necessary.

If nothing else, you'll be able to find a lot more help with VBA code.

In any case, it's fairly simple to insert slides into one presentation from
another:

Sub InsertSlidesFrom(sSongPresentation As String)
' This will insert all of the slides from sSongPresentation into the currently
' active presentation
' Up to you to add errorchecking/handling
' It appends the slides from sSongPresentation to the end of the current pres

Call ActivePresentation.Slides.InsertFromFile(sSongPresentation, _
ActivePresentation.Slides.Count)

End Sub
 

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

Back
Top