This is the word processor control that runs inside Microsoft Internet Explorer.
For a list of all members of this type, see EditorControl Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
Aspose.Editor.Core.Events.EventProcessor
Aspose.Editor.Client.EditorControl
[Visual Basic]NotInheritable Public Class EditorControl
Remarks
To build an ASP.NET application with Aspose.Editor you need to use both: the client part and the server part of the control. Aspose.Editor.Client.EditorControl (this class) represents the client part of the control and it is defined in the Aspose.Editor.Client.dll assembly. Aspose.Editor.Server.EditorControl represents the server part of the control and it is defined in the Aspose.Editor.Server.dll assembly.
When building an ASP.NET application, you need to add Aspose.Editor.Server.EditorControl to an ASP.NET web form. When the user requests that web page, the server control generates HTML with an <object> tag, that specifies the URL to Aspose.Editor.Client.dll and the name of the client control class Aspose.Editor.Client.EditorControl. When Microsoft Internet Explorer renders this page, it downloads Aspose.Editor.Client.dll and invokes Aspose.Editor.Client.EditorControl inside the browser on the client machine.
See Aspose.Editor Programmer's Guide for more information about how to use Aspose.Editor in an ASP.NET application to achieve WYSIWIG word processing inside the browser.
Example
Shows how to open a DOC or HTML document in the editor control.
[C#]
// Normally this code is generated by Visual Studio .NET when you drag and drop
// the editor control into your Windows Form, but you can also code it youself.
EditorControl editorControl = new EditorControl();
editorControl.Dock = DockStyle.Fill;
Document document = new Document(MyPath + "Welcome.doc");
// This opens the document in the editor control.
editorControl.Document = document;
[Visual Basic]
' Normally this code is generated by Visual Studio .NET when you drag and drop
' the editor control into your Windows Form, but you can also code it youself.
Dim editorControl As New EditorControl()
editorControl.Dock = DockStyle.Fill
Dim document As New Document(MyPath & "Welcome.doc")
' This opens the document in the editor control.
editorControl.Document = document
Creates a new editor control and opens a new document in it.
[C#]
// Normally this code is generated by Visual Studio .NET when you drag and drop
// the editor control into your Windows Form, but you can also code it youself.
EditorControl editorControl = new EditorControl();
editorControl.Dock = DockStyle.Fill;
// Lets display paragraph marks, spaces, breaks etc.
editorControl.Options.IsShowFormattingMarks = true;
// This creates a new document and opens it in the editor control.
editorControl.Open();
[Visual Basic]
' Normally this code is generated by Visual Studio .NET when you drag and drop
' the editor control into your Windows Form, but you can also code it youself.
Dim editorControl As New EditorControl()
editorControl.Dock = DockStyle.Fill
' Lets display paragraph marks, spaces, breaks etc.
editorControl.Options.IsShowFormattingMarks = True
' This creates a new document and opens it in the editor control.
editorControl.Open()
Creates a new editor control and opens and loads a WordprocessingML document from a file.
[C#]
// Normally this code is generated by Visual Studio .NET when you drag and drop
// the editor control into your Windows Form, but you can also code it youself.
EditorControl editorControl = new EditorControl();
editorControl.Dock = DockStyle.Fill;
// This loads a WordprocessingML document and opens it in the editor control.
editorControl.Open(MyPath + "Welcome.xml");
// We let the program run for a while here...
// User edited the document and choose to save it. Let's save it under a different name.
editorControl.Save(MyPath + "ExEditorControl.OpenSaveCloseFile Out.xml");
// This removes the document from the editor control completely.
editorControl.Close();
[Visual Basic]
' Normally this code is generated by Visual Studio .NET when you drag and drop
' the editor control into your Windows Form, but you can also code it youself.
Dim editorControl As New EditorControl()
editorControl.Dock = DockStyle.Fill
' This loads a WordprocessingML document and opens it in the editor control.
editorControl.Open(MyPath & "Welcome.xml")
' We let the program run for a while here...
' User edited the document and choose to save it. Let's save it under a different name.
editorControl.Save(MyPath & "ExEditorControl.OpenSaveCloseFile Out.xml")
' This removes the document from the editor control completely.
editorControl.Close()
Requirements
Namespace: Aspose.Editor.Client
Assembly: Aspose.Editor.Client (in Aspose.Editor.Client.dll)
See Also
EditorControl Members | Aspose.Editor.Client Namespace