PowerPointTemplate
Description
The PowerPointTemplate object represents a PowerPointWriter template presentation.
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:
To create an instance of the ExcelTemplate
object use:
Methods
Name |
Description |
---|
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. |
Creates a DataBindingProperties object for assigning the property values associated with one or more data binding calls. | |
Creates a new PowerPointTemplate object |
|
Passes a presentation from PowerPointApplication to PowerPointTemplate. | |
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. | |
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. | |
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. | |
Saves the PowerPointTemplate to disk. The location is specified by the filename parameter. |
|
Saves the PowerPointTemplate to a stream passed in as the stream parameter. | |
Streams the PowerPointTemplate to the client. | |
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. |