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 only print the data inside a form field in this document. This is typically used to print the data entered into an online form without printing the online form.{excerpt}
{signature:C#}
 public boolean PrintDataInFormFields{ get; set; }
{signature}{signature:vb.net}
Public Property PrintDataInFormFields() As Boolean
{signature}
{remarks}The default value for a new [Document|Document] is {{false}}.

MS Word equivalent: File menu > Print... > Options... button > Options for current document only section > Print data only for forms \ Or \ File menu > Page Setup > Paper tab > Print options... button > Options for current document only section > Print data only for forms

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

          //--- Return PrintDataInFormFields
          bool printData = oDocument.PrintDataInFormFields;

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

          '--- Return PrintDataInFormFields
          Dim printData As Boolean = oDocument.PrintDataInFormFields

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

{example}