Document Class |
Namespace: SOWIDocument.Word
The Document type exposes the following members.
| Name | Description | |
|---|---|---|
| Document |
Initializes a new instance of the Document class.
Constructor without parameter
| |
| Document(String) |
Constructor with parameter File name. If doesn't exist file then create a new file document
| |
| Document(Byte, String) |
Constructor with parameter Byte array and save to File name
| |
| Document(String, Boolean, DocumentTypes) |
Constructor with parameter File name and Edit (editable) and DocumentTypes | |
| Document(Byte, String, Boolean, DocumentTypes) |
Constructor with parameter Byte array, Edit (editable) and save to File name
|
| Name | Description | |
|---|---|---|
| AutoText |
AutoText handling
| |
| Bookmark |
Bookmark handling
| |
| FileName |
Document filename include path. Set by constructor.
| |
| Footer |
Footer handling
| |
| GetContent |
Gives a byte array
| |
| GetPageSize |
Gives page size width and height
| |
| GetPageWidth |
Gives inner page width
| |
| Header |
Header handling
| |
| Image |
Image handling
| |
| MyDocument |
Word document
| |
| Table |
Table handling
| |
| Type |
Gives document type to save. Set by constructor (method Open)
|
| Name | Description | |
|---|---|---|
| AddBreakContinuous |
Inserts a document section break of type continuous
| |
| AddDocument |
Add the body elements of parameter pDocument | |
| AddElementAtParagraph |
Added a XML element at selection (add element at paragraph)
| |
| AddFormFieldCheckbox |
Add a form field of type checkbox at selection
| |
| AddFormFieldText |
Add a form field of type text at selection
| |
| AddMergeField |
Add a merge field at selection
| |
| AddNewPage |
Add a page break to body
| |
| AddParagraph |
Insert a paragraph at selection
| |
| AddTable |
Append a table from a two-dimensional array (rows, columns)
| |
| AddText(String) |
Add the text (parameter pText) to body
| |
| AddText(OpenXmlElement, String, String, Boolean) |
Add the text at selection
| |
| Close |
Close the Open Document Format file
| |
| Create |
Create a new document file from a template or create a simple new document
| |
| GetBodySectionProperties |
Gives document body SectionProperties object.
| |
| GetPageBreakParagraph |
Gives a page break paragraph back
| |
| GetParagraph |
Gives next of parent paragraph object or triggers an exception.
| |
| GetPart |
Gives Open XML part back.
| |
| GetSections |
Gives all document sections properties
| |
| GetSpace |
Gives a space text object
| |
| GetSymbolCharCheckbox |
Gives checkbox symbol checked or unchecked
| |
| GetSymbolCharCheckboxText |
Gives a Run object with check box symbol.
| |
| GetTable |
Created a table object by parameters.
| |
| GetText |
Gives inner element text from Open XML Element include sub child elements
| |
| Open(String, Boolean, DocumentTypes) |
Open a Open Document Format via file
| |
| Open(Byte, String, Boolean, DocumentTypes) |
Open a Open Document Format via stream
| |
| ProtectForm |
Protection document for forms input
| |
| Replace |
Replace text
| |
| SetAutoHyphenation |
Automatically hyphenate document contents when displayed (Silbentrennung).
| |
| SetColumns |
Set document section columns
| |
| SetCustomProperty |
Write a custom document property
| |
| SetFormSection |
Sets section property for form inputs.
| |
| SetLanguage |
Specifies the languages (be used to check spelling and grammar)
| |
| SetMergeFile |
Sets merge file for document
| |
| SetParagraphStyle |
Set paragraph style
| |
| SetSpelling |
Display visual Indication of spelling errors
| |
| SetStyleName |
Set new style name
| |
| SetTextStart |
Sets document start up position
| |
| TestCaseExtensionAddElements |
Test case for SOWI Document Word Extension method AddElements
|
| Name | Description | |
|---|---|---|
| ConvertDateFromSQL |
Convert SQL date include value null
(Defined by Extension.) | |
| ConvertDateToSQL |
Convert C# date type to SQL date type
(Defined by Extension.) | |
| ToFill |
Report document fill with data
(Defined by Report.) |
Note: using DocumentFormat.OpenXml.Packaging and DocumentFormat.OpenXml.Wordprocessing:
class with full namespace path not declaration in region Using because class name collide with SOWIDocument.Word.Helper names