Message-ID: <1219056339.7805.1711621911032.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_7804_730296192.1711621911032" ------=_Part_7804_730296192.1711621911032 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The Process met= hod replaces the template's data markers with actual values from the data s= ources, and creates the output file (the new presentation file) in memory. = The Save method can= then 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=
.
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