Message-ID: <699484151.9949.1711707223904.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9948_1277006667.1711707223904" ------=_Part_9948_1277006667.1711707223904 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html PowerPointTemplate

PowerPointTemplate

PowerPointTemplate=

=20

Description

=20

The PowerPointTemplate= object represents a PowerPointWriter template presentation.

=20
C#
=20
public class PowerPointTemplate
=20
=20
vb.net
=20
Public Class PowerPointTemplate
=20
=20

Remarks

=20

A PowerPointWriter template is a file created in Microsoft PowerPoint th= at contains data markers.

=20

A data marker specifies which database column, variable, or array to ins= ert into the presentation where the data marker exists.

=20

The PowerPointTemplate object is in the SoftArtisans.= PowerPointWriter namespace. The object can be referenced as So= ftArtisans.PowerPointWriter.PowerPointTemplate. To minimize typing a= nd errors, use an Import directive to import the namespace to = the aspx page, and reference the object as PowerPointTemplate,= without the namespace prefix.

=20

Examples

=20

If you are coding directly in the .aspx page, following the Page directi= ve, include:

=20
=20
<%@ Import Namespace=3D"SoftArtisans.PowerPointWriter" %>=20
=20

If you are coding in the "code behind" page (.aspx.vb or .aspx= .cs), include an Imports or using statement at th= e top of the "code behind" page:

=20
C#
=20
using SoftArtisans.PowerPointWriter;
=20
=20
vb.net
=20
Imports SoftArtisans.PowerPointWriter
=20
=20

To create an instance of the ExcelTemplate object use:

= =20
C#
=20
PowerPointTemplate ppt =3D new PowerPointTemplate();
=20
=20
vb.net
=20
Dim ppt As New PowerPointTemplate()
=20
=20

Methods

=20
=20 =20 =20 =20 =20

Name

Description

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

BindData(Object(), String(), String, DataBindingProperties)

Sets a two-dimensional array of objects as a te= mplate data source

BindData(Object()(), String(), String, DataBindingProperties) <= /p>

Sets a two-dimensional array of objects as a te= mplate data source

BindData(System.Data.DataTable, String, DataBindingProperties) =

Sets an ADO.NET DataTable as a data source to b= ind to template data markers.

CreateDataBindingProperties()

Creates a DataBindingProperties object for assigning the property val= ues associated with one or more data binding calls.

PowerPointTemplate()

Creates a new PowerPointTemplate object

Open(PowerPointApplication, Presentation)

Passes a presentation from PowerPointApplication to PowerPointTemplate.

Open(String)

Opens a PowerPointWriter template presentation = file from the specified disk location. A PowerPointWriter template is a fil= e created in Microsoft PowerPoint that contains data markers where data sou= rce values will be inserted.

Open(System.IO.Stream)

Opens a PowerPointWriter template presentation = file from the specified System.IO.Stream instance. A PowerPointWriter templ= ate is a file created in Microsoft PowerPoint that contains data markers wh= ere data source values will be inserted.

Process()

The Process method replaces the template's data markers with actua= l values from the data sources, and creates the output file (the new presen= tation file) in memory. The Save method can then save the output file to disk, stream it to the= browser, or both.

Save(String)

Saves the PowerPointTemplate to disk. The locat= ion is specified by the filename parameter.

Save(System.IO.Stream)

Saves the PowerPointTemplate to a stream passed= in as the stream parameter.

Save(System.Web.HttpResponse)

Streams the PowerPointTemplate to the client. <= /td>=20

Save(System.Web.HttpResponse, String, Boolean)

Streams the PowerPointTemplate to the client. T= his method allows you to specify a default client-side file name, and wheth= er the file should be opened in the browser window or in Microsoft PowerPoi= nt.
------=_Part_9948_1277006667.1711707223904--