Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Intro

This guide will explain how to import a multiple rows of values into a PowerPoint presentation using data markers. This assumes a basic understanding of data markers.

Jump to:

Binding Data

PowerPointTemplate has a single method for binding data to the data markers that are located in the template: PowerPointTemplate.BindData. Depending on the data source type and the number of rows in the data source, PowerPointWriter will either import a single row of data or import multiple rows by repeating sections of the presentation.

By default, every appearance of a data marker will be populated with the same data. For example, if %%=Header.CompanyLogo(image) appears on multiple slides, each data marker will be populated with the company logo. This behavior can be overwritten using data binding properties.

In order for repeat behavior to work properly, the data marker must be placed in a list entry or table row. The list or table will be expanded to contain all of the imported data.

Repeat Slide Behavior

DataBindingProperties

Data binding properties can be used to specify the way data is imported into the presentation.
To set the max number of rows to import onto each slide of the presentation use MaxRowsPerSlide. MaxRowsPerSlide will continue to import more rows of data as long as it can find a data marker with the 'continue' modifier. For more information see Fitting Data on to Multiple Slides

Types of Data Sources

Arrays of objects

Methods:

  • [PowerPointTemplate.BindData(Object[],String[],String,DataBindingProperties)]
  • [PowerPointTemplate.BindData(Object[][],String[],String,DataBindingProperties)]
  • [PowerPointTemplate.BindData(Object,,String[],String,DataBindingProperties)]

Arrays don't have built-in means to store column names. The user must specify the column names in a string array that is passed to PowerPointTemplate.BindData at run time.

PowerPointWriter will import all the rows in a multidimensional array (Object[,]) or a jagged array using built-in repeating behavior.

Examples

TO DO – Create code sample

Custom objects

TO FILL IN AFTER THE MULTIPLE ROWS WITH NOTE ABOUT "ONLY 1 ROW OF DATA"

Data Readers and Data Tables

TO FILL IN AFTER THE MULTIPLE ROWS WITH NOTE ABOUT "ONLY 1 ROW OF DATA"

  • No labels