[]
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)
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)
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()
Type | Description |
---|---|
object | The opened document or null if operation was cancelled or there was an error while loading the document. |