Hi,
I'm trying to delevop a PowerPoint Add-In in VS.NET wizard. Im not 100% sure how to connect to the active presentation, and how to debug after installation.
Does anyone have a guide or tutorial regrding this?
code sample: ... private object applicationObject; private PowerPoint.ApplicationClass app;
... public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom) { applicationObject = application; ... private void MyButton_Click(CommandBarButton cmdBarbutton,ref bool cancel) //My button { app = (Microsoft.Office.Interop.PowerPoint.ApplicationClass)applicationObject; app.ActivePresentation.SaveAs(@"d:\!test.ppt", PowerPoint.PpSaveAsFileType.ppSaveAsPowerPoint7, MsoTriState.msoFalse); ...
Basically I want to have a special export button that saves the ppt and do some stuff with it. I'm not 100% sure what I'm doing here so any examples would be highly appreciated!
Thanks, Rob
=================================== This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com