Accessing ppt file and variables in C#

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hello

I want to know if it is possible to open a ppt file from a program written
in C#, and then access variable in the PPT file to put some text.

But first is there a way to put a name on some textboxes in a PPT file ?
(which would be my variables)

Thanks for your answers.

Michael
 
I want to know if it is possible to open a ppt file from a program written
in C#, and then access variable in the PPT file to put some text.

Yes, it should be possible; I'm not a C# user but there seem to be plenty of
people doing this.
But first is there a way to put a name on some textboxes in a PPT file ?
(which would be my variables)

Not via the PowerPoint UI but it's fairly simple with a little VBA code in PPT
itself.

Sub NameMe()
' Names the currently selected shape:
With ActiveWindow.Selection.ShapeRange(1)
.Name = "WhateverYouLike"
End With
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