Message-ID: <962096395.9789.1711702847166.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9788_485595285.1711702847166" ------=_Part_9788_485595285.1711702847166 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The Process meth= od replaces the template's data markers with actual values from the data so= urces, and creates the output file (the new presentation file) in memory. T= he Save method can t= hen save the output file to disk, stream it to the browser, or both.
=20public void Process()=20
Public Sub Process()=20
Call Process
after SetDataSource and before Save.
You can call Process
only once for each instance of PowerPointTemplate<=
/a>.
PowerPointTemplate pptt =3D new PoweRPointTemplate(); pptt.Open(Application["templatepath"] + @"\DataBinding\ArrayBindingTemplate2.pptx"); //--- Set a data source for the data marker "SimpleArray.&qu= ot; string[] onedim =3D {"SoftArtisans", "OfficeWriter= ", "ExcelTemplate"}; pptt.SetColumnDataSource(onedim, "SimpleArray"); //--- Process the template to populate it with the data source da= ta. pptt.Process(); //--- Stream the processed document to the client. pptt.Save(Page.Response, "ArrayBinding.pptx", false);=20
Dim pptt As New PowerPointTemplate() pptt.Open(Application("templatepath") & _ "\DataBinding\ArrayBindingTemplate2.pptx") '--- Set a data source for the data marker "SimpleArray.&quo= t; Dim onedim As String() =3D {"SoftArtisans", "Offic= eWriter", "ExcelTemplate"} pptt.SetColumnDataSource(onedim, "SimpleArray") '--- Process the template to populate it with the data source dat= a. pptt.Process() '--- Stream the processed document to the client. pptt.Save(Page.Response, "ArrayBinding.pptx", False)=20