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

WordTemplate.Bookmarks

Description

=20

Returns the names of all bookmarks in a WordWriter template.

=20
C#
=20
 public System.String[] Bookmarks{ get; }
=20
=20
vb.net
=20
Public ReadOnly Property Bookmarks() As String()
=20
=20

Remarks

Bookmarks are used t= o define repeat blocks. A repeat block is a fragment in the template docume= nt that contains merge fields and that will be repeated for each row in a d= ata source.=20

Examples

=20
C#
=20

          //--- Create the WordTemplate object.
          WordTemplate oWW =3D new WordTemplate();

          //--- Open a template using a string.
          oWW.Open("C:\template.doc");

          //--- Get all the bookmark names in the document.
          String[] allBookmarks =3D oWW.Bookmarks;
        
=20
=20
vb.net
=20

          '--- Create the WordTemplate object.
          Dim oWW As New WordTemplate()

          '--- Open a template using a string.
          oWW.Open("C:\template.doc")

          '--- Get all the bookmark names in the document.
          Dim allBookmarks As String() =3D oWW.Bookmarks
        
=20
------=_Part_7608_1190516719.1711615471948--