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 24 Next »

Intro

The DataBindingProperties allows customization of how data is imported by PowerPointTemplate.

Jump to:

Definition

The DataBindingProperties object controls how data is bound when the BindData method is called. DataBindingProperties can control the max rows of data per slide, the max total rows of data imported, and the slide to which the data is bound. The BindData method requires a DataBindingProperties object as a parameter. Use the following line of code to create a new DataBindingProperties object.

MaxRowsPerSlide

MaxRowsPerSlide controls how many of rows of data should be imported onto each slide.

Unknown macro: {chsarp}

//Setting MaxRowsPerSlide
dataProps.MaxRowsPerSlide = 5;

//Setting MaxRowsToImport
dataProps.MaxRowstoImport = 10;

dataProps.Slide = 2;

Using Slide with Slides.CopySlide

Slide allows for data markers across the presentation to have the same name but import from different data sources. When used with the PowerPointApplication method, Slides.CopySlide, it is easy to programmatically create and populate multiple slides with the same layout.

See the CopySlide sample for an example of using the Slide DataBindingProperty with Slides.CopySlide.

  • No labels