Modifying PPT files programatically

K

Kirti

Hi,
I have a one ppt file.
I want to some modifications to this file
programatically.
This ppt has 2 slides.
Each slide has one button.
In Action Settings property -> Run command of this
button, there is one exe name. I have to remove this exe
name from run command and enter new exe name.
It's giving error that this object doesn't support
this property.
Below i am giving the code. The code is written in
C#.net.

if(objActionSetting.Action ==
PowerPoint.PpActionType.ppActionRunProgram)

{

string strRunText = objActionSetting.Run;

strRunText = strRunText.ToUpper();


if(strRunText == "VWPPV8L.EXE -S=C")
{

objActionSetting.Run= "CBTFileWriter.exe";

}
}

Please help me out in this problem.
Thaking you.
 

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