PowerPointTemplate pptt = new PoweRPointTemplate();
pptt.Open(Application["templatepath"] +
@"\DataBinding\ArrayBindingTemplate2.pptx");
//--- Set a data source for the data marker "SimpleArray."
string[] onedim = {"SoftArtisans", "OfficeWriter", "ExcelTemplate"};
pptt.SetColumnDataSource(onedim, "SimpleArray");
//--- Process the template to populate it with the data source data.
pptt.Process();
//--- Stream the processed document to the client.
pptt.Save(Page.Response, "ArrayBinding.pptx", false);
|