Click or drag to resize

Document Methods

The Document type exposes the following members.

Methods
  NameDescription
Protected methodAddBreakContinuous
Inserts a document section break of type continuous
Public methodAddDocument
Add the body elements of parameter pDocument
Protected methodAddElementAtParagraph
Added a XML element at selection (add element at paragraph)
Protected methodAddFormFieldCheckbox
Add a form field of type checkbox at selection
Protected methodAddFormFieldText
Add a form field of type text at selection
Protected methodAddMergeField
Add a merge field at selection
Public methodAddNewPage
Add a page break to body
Protected methodAddParagraph
Insert a paragraph at selection
Public methodAddTable
Append a table from a two-dimensional array (rows, columns)
Public methodAddText(String)
Add the text (parameter pText) to body
Protected methodAddText(OpenXmlElement, String, String, Boolean)
Add the text at selection
Public methodClose
Close the Open Document Format file
Public methodCode exampleCreate
Create a new document file from a template or create a simple new document
Protected methodGetBodySectionProperties
Gives document body SectionProperties object.
Protected methodGetPageBreakParagraph
Gives a page break paragraph back
Protected methodGetParagraph
Gives next of parent paragraph object or triggers an exception.
Protected methodCode exampleGetPart
Gives Open XML part back.
Protected methodGetSections
Gives all document sections properties
Protected methodGetSpace
Gives a space text object
Protected methodGetSymbolCharCheckbox
Gives checkbox symbol checked or unchecked
Protected methodGetSymbolCharCheckboxText
Gives a Run object with check box symbol.
Protected methodGetTable
Created a table object by parameters.
Protected methodGetText
Gives inner element text from Open XML Element include sub child elements
Private methodOpen(String, Boolean, DocumentTypes)
Open a Open Document Format via file
Private methodOpen(Byte, String, Boolean, DocumentTypes)
Open a Open Document Format via stream
Public methodProtectForm
Protection document for forms input
Public methodReplace
Replace text
Public methodSetAutoHyphenation
Automatically hyphenate document contents when displayed (Silbentrennung).
Protected methodSetColumns
Set document section columns
Public methodSetCustomProperty
Write a custom document property
Public methodSetFormSection
Sets section property for form inputs.
Public methodSetLanguage
Specifies the languages (be used to check spelling and grammar)
Public methodSetMergeFile
Sets merge file for document
Protected methodSetParagraphStyle
Set paragraph style
Public methodSetSpelling
Display visual Indication of spelling errors
Public methodSetStyleName
Set new style name
Public methodSetTextStart
Sets document start up position
Public methodTestCaseExtensionAddElements
Test case for SOWI Document Word Extension method AddElements
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleConvertDateFromSQL
Convert SQL date include value null
(Defined by Extension.)
Public Extension MethodConvertDateToSQL
Convert C# date type to SQL date type
(Defined by Extension.)
Private Extension MethodToFill
Report document fill with data
(Defined by Report.)
Top
See Also