Message-ID: <1572645983.7651.1711616958747.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_7650_1979555501.1711616958747" ------=_Part_7650_1979555501.1711616958747 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html How to Use Data Binding Properties

How to Use Data Binding Properties

Introduction<= /h2>

The DataBindingProperties allows customization of how data is imported b= y PowerPointTemplate.

Jump to:

 

Definition

The = ; DataBindingProperties&= nbsp;object controls how data is bound when the  BindData me= thod 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 me= thod requires a DataBindingProperties object as a parameter. Use the follow= ing line of code to create a new DataBindingProperties object.
=20
DataBindingProperties dataProps =3D pptt.CreateDataBindingProper=
ties();
=20

MaxRowsPerSlide

MaxRows= PerSlide controls how many of rows of data should be imported onto each= slide.

=20
//Setting MaxRowsPerSlide
dataProps.MaxRowsPerSlide =3D 5;
=20

Using MaxRowsPerSlide to = fit data on multiple slides

When this property is set, PowerPointWriter will stop importing data whe= n the limit is reached. In order to import all the data in a data source to= your presentation, MaxRowsPerSlide should be used with the _Continue_ modi= fier. The default value is -1 which indicates that all the data in the data= source should be imported to a single slide. For more information see Importing Multiple R= ows of Data and Fitting Data on to Multiple Slides.

MaxRowstoImport

MaxRows= ToImport determines how many total rows of data to import into a presen= tation. PowerPointWriter will stop importing data from the data source when= this limit is reached. The default value is -1 which indicates that data w= ill continue to be imported until the end of the data source is reached.

=20
//Setting MaxRowsToImport
dataProps.MaxRowstoImport =3D 10;
=20

Importing a single row of = data with MaxRowsToImport

Setting MaxRowsToImport =3D 1 will import a single row of data from a da= ta set with multiple rows. For more information see Importing a Single Row of Data.

Slide

 

Slide control= s which slide in a presentation a given data source should be imported into= . Slide can be set to the 0-based index of the slide you wish to import dat= a to. The default value is -1 which indicates that the data is not scoped t= o a particular slide.

=20
dataProps.Slide =3D 2;
=20


Using Slide with Slides.CopySlide=

 

Slide allows for data markers across the presentation to have the same n= ame but import from different data sources. When used with the PowerPointApplication method, Slides.CopySlide(PowerPoint= Writer.Slide, Int), 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.


 

------=_Part_7650_1979555501.1711616958747--