...
Csharp |
---|
PowerPointTemplate pptt = new PowerPointTemplate(); pptt.Open(templatePath); pptt.BindData(valuesArray, colNamesArray,"DataSourceName", pptt.CreateDataBindingProperties()); pptt.Process(); //--- Create an instance of PowerPointApplication and //--- open the presentation you created with PowerPointTemplate. //--- The presentation will be returned as a Presentation //--- object. PowerPointApplication ppta = new PowerPointApplication(); Presentation pres = ppta.Open(pptt); |
Vbnet |
---|
Option Strict On Dim pptt As PowerPointTemplate = new PowerPointTemplate(); //--- Create an instance of PowerPointApplication and |
...
Csharp |
---|
PowerPointApplication ppta = new PowerPointApplication(); Presentation present = ppta.Open("StartingFile.pptx"); //--- Code modifying and customizing the presentation here //--- ... PowerPointTemplate ppt = new PowerPointTemplate(); ppt.Open(ppta, present); PowerPointTemplate pptt = new PowerPointTemplate(); pptt.Open(templatePath); pptt.BindData(valuesArray, colNamesArray,"DataSourceName", pptt.CreateDataBindingProperties()); pptt.Process(); //--- Create an instance of PowerPointApplication and //--- open the presentation you created with PowerPointTemplate. //--- The presentation will be returned as a Presentation //--- object. PowerPointApplication ppta = new PowerPointApplication(); Presentation pres = ppta.Open(pptt); |
Vbnet |
Option Strict On Dim pptt As PowerPointTemplate = new PowerPointTemplate(); //--- open the presentation you created with PowerPointTemplate. //--- The presentation will be returned as a Presentation //--- object. Dim ppta As PowerPointApplication = new PowerPointApplication(); Dim pres As Presentation = ppta.Open(pptt |
Vbnet |
---|
Dim ppta As PowerPointApplication = new PowerPointApplication(); //--- Code modifying and customizing the presentation here Dim ppt As PowerPointTemplate = new PowerPointTemplate(); |