Skip to main content
A newer version of this page is available. .

RichEditDocumentServer Members

A non-visual .NET library providing all the word processing functionality.

Constructors

Name Description
RichEditDocumentServer() Initializes a new instance of the RichEditDocumentServer class with the default settings.

Properties

Name Description
DocBytes Gets or sets the document content as an array of bytes in Microsoft Word 97-2003 format (Doc) format.
Document Provides access to a Document interface, representing the document contained in the server.
DocumentLayout Provides access to the document layout.
DpiX Gets the current dpi value for the X-coordinate.
DpiY Gets the current dpi value for the Y-coordinate.
HtmlText Gets or sets the content as HTML text.
IsPrintingAvailable Maintained for compatibility with the code written for the RichEditControl.
IsUpdateLocked Returns a value indicating whether the RichEditDocumentServer object is locked for update.
LayoutCalculationMode Gets or sets the mode for layout calculation.
LayoutUnit Gets or sets a unit of measure used for a document model layout.
MhtText Gets or sets the document content as MHT text.
Model For internal use.
Modified Gets or sets a value that indicates that the document contents is modified since it was last saved.
OpenDocumentBytes Gets or sets the document content as an array of bytes in Open Office Text (.odt) format.
OpenXmlBytes Gets or sets the document content as an array of bytes in Office Open XML (Docx) format.
Options Provides access to the variety of options which can be specified for the RichEditDocumentServer.
RtfText Gets or sets the formatted text content of the document.
Text Gets or sets the plain text content of the document.
Unit Gets or sets a unit of measure used within the RichEditDocumentServer.
WordMLText Gets or sets the document content as the text in WordProcessingML (Microsoft Office Word 2003 XML) format.

Methods

Name Description
AddService(Type, ServiceCreatorCallback, Boolean) Adds the specified service to the service container.
AddService(Type, ServiceCreatorCallback) Adds the specified service to the service container.
AddService(Type, Object, Boolean) Adds the specified service to the service container.
AddService(Type, Object) Adds the specified service to the service container.
BeginInitialize() This member supports the internal infrastructure and is not intended to be used directly from your code.
BeginUpdate() Locks the RichEditDocumentServer object until the RichEditDocumentServer.EndUpdate method is called.
CancelUpdate() This method supports the internal infrastructure and is not intended to be called directly from your code. Use the RichEditDocumentServer.EndUpdate method instead.
CreateMailMergeOptions() Creates an object for specifying the options used in mail merge operations.
CreateNewDocument(Boolean) Creates a new blank document.
Dispose() Releases resources associated with a RichEditDocumentServer instance.
EndUpdate() Unlocks the RichEditDocumentServer object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ExportToPdf(Stream, PdfCreationOptions, PdfSaveOptions) Obsolete. Exports the content of the RichEditControl to the specified stream in PDF format, applying options for creating and saving.
ExportToPdf(Stream, PdfExportOptions) Exports the document to the specified stream in PDF format.
ExportToPdf(Stream) Exports the document to the specified stream in PDF format.
ExportToPdf(String, PdfExportOptions) Exports the content of the RichEditControl to the specified file path in PDF format, applying PDF-specific options.
ExportToPdf(String) Exports the document content to the specified file path in PDF format.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetService(Type) Gets the service object of the specified type.
GetService<T>() Gets the specified service.
GetType() Gets the Type of the current instance. Inherited from Object.
LoadDocument(Stream, DocumentFormat, String) Loads a document from the stream in the specified format. External content for HTML format is retrieved using the specified source (base) URI.
LoadDocument(Stream, DocumentFormat) Loads a document from a stream, specifying the document format.
LoadDocument(Stream) Loads a document from the stream.
LoadDocument(String, DocumentFormat, String) Loads a document from the file in the specified format. External content for HTML format is retrieved using the specified source (base) URI.
LoadDocument(String, DocumentFormat) Loads a document from a file, specifying the document format.
LoadDocument(String) Loads a document from the specified file. The file format is determined by its content.
LoadDocumentTemplate(Stream, DocumentFormat) Loads a document template with specified format from a stream.
LoadDocumentTemplate(Stream) Loads a document template from the stream.
LoadDocumentTemplate(String, DocumentFormat) Loads a document template from the file in the specified format.
LoadDocumentTemplate(String) Loads a document template from the specified file.
MailMerge(Document) Merges the current document and sends the result to the specified Document.
MailMerge(MailMergeOptions, Document) Merges the current document using the specified options, and sends the result to the specified Document.
MailMerge(MailMergeOptions, IRichEditDocumentServer) Obsolete. Merges the current document using the specified options and sends the result to the specified RichEditDocumentServer instance.
MailMerge(MailMergeOptions, Stream, DocumentFormat) Merges the current document using the specified options and sends the result to the specified stream in a specified format.
MailMerge(MailMergeOptions, String, DocumentFormat) Merges the current document using the specified options and sends the result to the specified file in a specified format.
MailMerge(IRichEditDocumentServer) Obsolete. Merges the current document and sends the result to the specified RichEditDocumentServer instance.
MailMerge(Stream, DocumentFormat) Merges the current document and sends the result to the specified stream in a specified format.
MailMerge(String, DocumentFormat) Merges the current document and sends the result to the specified file in a specified format.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Print() Prints the document to the default printer with the default settings.
Print(PrinterSettings, String) Prints the document with the given printer settings and document name.
Print(PrinterSettings) Prints the document with the given printer settings.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveService(Type, Boolean) Removes the service of the specified type from the service container.
RemoveService(Type) Removes the service of the specified type from the service container.
ReplaceService<T>(T) Performs a service substitution.
SaveDocument(Stream, DocumentFormat) Saves the document to a stream, specifying the document’s format.
SaveDocument(String, DocumentFormat) Saves the control’s document to a file, specifying the document’s format.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
AfterExport Occurs after the document is successfully exported.
BeforeExport Occurs before the document is saved (exported to a certain format).
BeforeImport Occurs before a document is loaded (imported from an external source).
BeforePagePaint Enables you to specify a custom PagePainter descendant to alter the way the layout elements are drawn.
CalculateDocumentVariable Fires when the DOCVARIABLE field is updated.
CommentInserted Occurs after a new comment is created in the document.
ContentChanged Occurs when the document content was changed.
CustomPropertiesChanged Occurs when one of the DocumentCustomProperties has changed.
DocBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
DocumentClosing Occurs when a document that has not yet been saved is about to be closed.
DocumentLoaded Occurs after a document is loaded.
DocumentPropertiesChanged Occurs after one of the DocumentProperties has changed.
EmptyDocumentCreated Occurs when a new document is created.
HtmlTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
InitializeDocument Occurs before a document is loaded. Handle this event to set initial document settings.
InvalidFormatException Fires when the supplied data could not be recognized as data in the assumed format for import.
MailMergeFinished Fires when mail merge is completed.
MailMergeRecordFinished Fires after each data record is merged with the document in the mail merge process.
MailMergeRecordStarted Fires before each data record is merged with the document in the mail merge process.
MailMergeStarted Fires before mail merge starts.
MhtTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
ModifiedChanged Occurs when the value of the RichEditDocumentServer.Modified property is changed.
OpenDocumentBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
OpenXmlBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
RtfTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
SelectionChanged Fires in response to changing a selection in the document.
UnhandledException This event is raised when an exception unhandled by the RichEditDocumentServer occurs.
WordMLTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
See Also