|
|
Document Settings
Essential DocIO exposes several APIs to let you set the Document properties for newly created documents or read document properties of existing documents.
|
|
|
|
Both standard and custom properties of a document can be viewed and modified using Essential DocIO.
Sample Code-Document Settings
Standard Properties-MS Word
|
|
|
|
The Page setup properties that can be modified have been listed below:
-
Margins - Empty spaces along the sides of a page can be specified.
Sample Code-Margins
Margins-Illustrated
-
Orientation - can be set to Potrait or Landscape.
Sample Code-Orientation
Portrait Orientation-Illustrated
Landscape Orientation-Illustrated
-
Header and Footer Distance - can be modified.
Sample Code-Header and Footer Settings
Header and Footer Settings-illustrated
-
Page Alignment - The word document page can be aligned to the Top, Middle, Justified or Bottom as needed.
Sample Code-Page Alignment
Bottom Justified Page Alignment-Illustrated
-
Page Layout - The page borders and page size can be altered as needed.
Sample Code-Page Layout
Page Layout-Illustrated
|
|
|
|
Essential DocIO supports the for creation and retrieval of document variables in a word document. These Document variables are invisible fields that are used by a programmer to store information for future use.
Sample Code-Insert Document Variables
Document Containing Document Variables
|
|
|
|
|
|
|