Share via


PrintFormsData Class

Only Print Form Field Content.When the object is serialized out as xml, its qualified name is w:printFormsData.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.PrintFormsData

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class PrintFormsData _
    Inherits OnOffType
'Usage
Dim instance As PrintFormsData
public class PrintFormsData : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.15.1.61 printFormsData (Only Print Form Field Content)

This element specifies that printing the contents of this document shall only print the contents of WordprocessingML form fields defined using the FORMTEXT, FORMCHECKBOX, and FORMDROPDOWN field codes in their current locations on the page - all other document contents shall be suppressed.

[Rationale: This setting is typically used to allow duplication of paper forms in electronic WordprocessingML document form, allowing the resulting online document to be printed into the correct locations on the existing paper form. end rationale]

If this element is omitted, then the contents of the entire document (not just form fields) should be printed according to the normal print settings.

[Example: Consider a WordprocessingML document which has form fields in the top right and bottom left corners of the first page, as follows (with the text box form fields shaded in grey):

DocumentFormat.OpenXml.Wordprocessing.PrintFormsDa

If the only content which must be printed on the page are the form fields' contents, this requirement is specified using the following WordprocessingML in the document settings:

<w:printFormsData w:val="true" />

The printFormsData element's val attribute as a value of true, specifying that only form field data shall be printed, resulting in output as follows when printed:

DocumentFormat.OpenXml.Wordprocessing.PrintFormsDa

end example]

Parent Elements

settings (§17.15.1.78)

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PrintFormsData Members

DocumentFormat.OpenXml.Wordprocessing Namespace