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
Wiki Markup
{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.{excerpt}
{signature:C#}
 public boolean SaveDataInFormField{ get; set; }
{signature}{signature:vb.net}
Public Property SaveDataInFormField() As Boolean
{signature}
{remarks}The default value for a new [Document|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#}

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

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

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

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

{example}