Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

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

Signature
C#
C#
 public boolean RemoveExtraDataMarkers{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property RemoveExtraDataMarkers() As Boolean
{signature}
{remarks}By 
Remarks

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.

If

a

data

marker

includes

the

"Optional"

modifier,

and

does

not

bind

to

a

data

source,

ExcelWriter

will

remove

it

without

error

even

if

{{

RemoveExtraDataMarkers

}}

is

set

to

{{

false

}}. {{RemoveExtraDataMarkers}} is a *

.

RemoveExtraDataMarkers is a Read/Write

*

property.

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#


          //--- Setting RemoveDataMarkers to 'true' tells
          //--- ExcelWriter to remove data markers that do not
          //--- bind to a data source.
          xlt.RemoveExtraDataMarkers = true;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Setting RemoveDataMarkers to 'True' tells
          '--- ExcelWriter to remove data markers that do not
          '--- bind to a data source.
          xlt.RemoveExtraDataMarkers = True
        
{code} {example}