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 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.

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

MS Word equivalent: File menu > 
Remarks

The default value for a new 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


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#}

forms

Example
Code Block
csharp
csharp
titleC#


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

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


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

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