Message-ID: <991061136.8417.1711645182101.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8416_1654465956.1711645182101" ------=_Part_8416_1654465956.1711645182101 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ExcelTemplate.RemoveExtraDataMarkers

ExcelTemplate.RemoveExtraDataMarkers

Descrip= tion

=20

Sets whether ExcelWriter should remove data markers in the template that= do not bind to data sources in code.

=20
C#
=20
 public boolean RemoveExtraDataMarkers{ get; set; }
=20
=20
vb.net
=20
Public Property RemoveExtraDataMarkers() As Boolean
=20
=20

Remarks

=20

By default, if a data marker does not bind to a data source, ExcelWriter= will throw an exception. If RemoveExtraDataMarkers is set to = true, ExcelWriter will remove extra data markers silently.

= =20

If a data marker includes the "Optional" modifier, and does no= t bind to a data source, ExcelWriter will remove it without error even if <= code>RemoveExtraDataMarkers is set to false.

=20

RemoveExtraDataMarkers is a Read/Write pro= perty.

=20

Examples

=20
C#
=20

          //--- Setting RemoveDataMarkers to 'true' tells
          //--- ExcelWriter to remove data markers that do not
          //--- bind to a data source.
          xlt.RemoveExtraDataMarkers =3D true;
        
=20
=20
vb.net
=20

          '--- Setting RemoveDataMarkers to 'True' tells
          '--- ExcelWriter to remove data markers that do not
          '--- bind to a data source.
          xlt.RemoveExtraDataMarkers =3D True
        
=20
------=_Part_8416_1654465956.1711645182101--