This guide will explain the syntax and naming conventions of PowerPointWriter data markers, as well as data marker modifiers which can change how data is imported. |
|
|
---|---|
A data marker is a string used as a placeholder for data that will be imported by PowerPointWriter's PowerPointTemplate
object. Each data marker corresponds to a column in a data source. The data markers are added to the template in PowerPoint and then populated at run time using PowerPointTemplate
.
Data markers use the following syntax: %%=DataSourceName.ColumnName
PowerPointTemplate.BindData
method is called.For more information on the types of data sources supported by PowerPointWriter and how to bind data to a template, see Importing a Single Row of Data and Importing Multiple Rows of Data.
Additionally, the data source name and the column name must follow these rules:
To use any Unicode character or spaces in data marker names, enclose the data source name or column name in brackets: %%=[DataSourceName].[ColumnName]
For example: %%=Products.[Sales Person] or %%=[Dat@ $ource].ColumnName
Modifiers can effect how data is imported into the template file. Modifiers use the following syntax: %%=DataSourceName.ColumnName(modifier)
Modifier |
Behavior |
Additional references |
---|---|---|
Continue |
The continue modifier allows data to be imported onto multiple slides in a presentation. Set DataBindingProperties.MaxRowsPerSlide to limit the number of rows that can be imported on a slide and then use the continue modifier to continue importing the additional rows. |
|
Image |
The image modifier is used to import an image into a presentation. The image modifier has parameters that can control the dimensions and aspect ratio settings of the imported image. |