Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example: %%=Products.[Sales Person] or %%=[Dat@ $ource].ColumnName

Ordinal Syntax

Ordinal syntax uses a 1-based numbering to associate data markers to data sources and columns. Ordinal syntax is as follows: %%=#<data source number>.#<column name number>

The data source number is based on the order in which the BindData method is called. The column number is based on the order of the columns in the data source. If there is no data associated with the data marker, then the data marker will be ignored and removed from the output file.

In the example %%=#3.#2, the data marker will be populated with values from the second column of data from the data source associated with the third BindData call. If there is no second column in the data source, or there is no third call to BindData, the data marker will be ignored.

Modifiers

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.

Fitting Data on to Multiple Slides

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.

Importing Images

Fieldname

The fieldname modifier will force PowerPointWriter to import the column name, rather than values. Use with ordinal syntax to import unknown column names: %%=#3.#2(fieldname).