Skip to end of metadata
Go to start of metadata

Description

The PowerPointTemplate object represents a PowerPointWriter template presentation.
C#
vb.net

Remarks

A PowerPointWriter template is a file created in Microsoft PowerPoint that contains data markers.

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

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

Examples

If you are coding directly in the .aspx page, following the Page directive, include:

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

C#
vb.net

To create an instance of the ExcelTemplate object use:

C#
vb.net

Methods

Name

Description

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

Sets a two-dimensional array of objects as a template data source

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

Sets a two-dimensional array of objects as a template data source

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

Sets an ADO.NET DataTable as a data source to bind to template data markers.

CreateDataBindingProperties()

Creates a DataBindingProperties object for assigning the property values 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 file created in Microsoft PowerPoint that contains data markers where data source values will be inserted.

Open(System.IO.Stream)

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

Process()

The Process method replaces the template's data markers with actual values from the data sources, 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.

Save(String)

Saves the PowerPointTemplate to disk. The location 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.

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

Streams the PowerPointTemplate to the client. This method allows you to specify a default client-side file name, and whether the file should be opened in the browser window or in Microsoft PowerPoint.
  • No labels