Application Class |
The Application type exposes the following members.
| Name | Description | |
|---|---|---|
| ApplicationEvents | Defines several application events, which can be binded. | |
| Commands | Collection of Command Items. | |
| CompatibleDocumentVersion | Returns last compatible document version | |
| Current | The current instance of the running Application. | |
| CurrentDocument | Returns the current active Document. | |
| Documents | Collection of all open documents. | |
| DocumentVersion | Returns the current document version. | |
| Icon | The application icon. | |
| IsDemoVersion | True if there is no valid license. | |
| LicenseCompanyName | Returns the company name of issued license | |
| Settings | Application settings | |
| Show | Shows the main window. | |
| Version | Returns the program version. | |
| VersionString | Returns the program version in the format [programname] [version] [date]. |
| Name | Description | |
|---|---|---|
| AddLicense(String, String) | Add a license for a specific feature. | |
| AddLicense(Type, String) | Add a license for a specific feature. | |
| Lock | Locks the Application. The Application will terminate when the lockcount goes to zero. | |
| UnLock | Unlocks the Application. The Application will terminate when the lockcount goes to zero. |
| Name | Description | |
|---|---|---|
| DocumentAdded | Fired when an document is added. | |
| DocumentRemoved | Fired when an document is removed. | |
| FindFile | Handler for file requests. | |
| UnhandledException | Provides a way to Handle unhandled exceptions. |
public void DoWork() { Document doc = Application.Current.Documents.CreateDoc("filename.empx", true, true); ImageFormatInfo info = doc.Export.CreateImageFormatInfo(ImageFormat.PNG); info.Filename = "Export.png"; info.ImageHeight = 800; info.ExportRoot = doc.CurrentSheet; doc.Export.ExportImage(info); doc.Close(); }