Message-ID: <60712811.8843.1711664235205.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8842_327614017.1711664235205" ------=_Part_8842_327614017.1711664235205 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Sets or returns the maximum number of rows to be bound to the template f= ile when the ExcelTemplate.= BindData or Excel= Template.BindColumnData methods are called.
=20public int MaxRows{ get; set; }=20
Public Property MaxRows() As Integer=20
Any rows in the data source after the MaxRows value will not be added t= o the template.
=20MaxRows
is a Read/Write property.
DataBindingProperties dbp =3D xlt.CreateDataBindingProperties(); dbp.MaxRows =3D 20; xlt.BindData(twodim, names, "TwoDimArray", dbp); xlt.Save(Page.Response, "output.xls", false);=20
Dim dbp As DataBindingProperties =3D xlt.CreateDataBindingPropert= ies() dbp.MaxRows =3D 20 xlt.BindData(twodim, names, "TwoDimArray", dbp) xlt.Save(Page.Response, "output.xls", False)=20