[]
Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog.
public object FileOpen(string fileName, bool showErrorMessage)
Public Function FileOpen(fileName As String, showErrorMessage As Boolean) As Object
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the file to open. |
| bool | showErrorMessage | If true, error message is shown if an exception occurs, otherwise the exception is rethrown. |
| Type | Description |
|---|---|
| object | The opened document or null if operation was cancelled,
or if |
Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog.
public object FileOpen(string fileName)
Public Function FileOpen(fileName As String) As Object
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the file to open. |
| Type | Description |
|---|---|
| object | The opened document or null if operation was cancelled or there was an error while loading the document. |
Shows the "open file" dialog allowing the user to select a document to open, and then opens it.
public object FileOpen()
Public Function FileOpen() As Object
| Type | Description |
|---|---|
| object | The opened document or null if operation was cancelled or there was an error while loading the document. |