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 or returns a boolean representing if Word will save only the data entered into a form field (instead of the field itself) for this document. When this is set to true, Word saves the data entered into an online form as a single, tab-delimited record so you can use it in a database. Word saves the file in Text Only file format.

Signature
C#
C#
 public boolean SaveDataInFormField{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property SaveDataInFormField() As Boolean
{signature}
{remarks}The default value for a new [Document|Document] is {{false}}.

MS Word equivalent: Tools menu > 
Remarks

The default value for a new Document is false.

MS Word equivalent: Tools menu > Options...

>

Save

tab

>

Save

options

section

>

Save

data

only

for

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

forms

Example
Code Block
csharp
csharp
titleC#


          //--- Return SaveDataInFormField
          bool vSaveData = oDocument.SaveDataInFormField;

          //--- Set SaveDataInFormField
          oDocument.PrintDataInFormFields = true;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Return SaveDataInFormField
          Dim vSaveData As Boolean = oDocument.SaveDataInFormField

          '--- Set PrintDataInFormFields
          oDocument.SaveDataInFormField = True
        
{code} {example}