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.
'Declaration
Public Overloads Function FileOpen( _
ByVal As System.String, _
ByVal As System.Boolean _
) As System.Object
public System.object FileOpen(
System.string ,
System.bool
)
Parameters
- fileName
- The name of the file to open.
- showErrorMessage
- If true, error message is shown if an exception occurs, otherwise the exception is rethrown.
Return Value
The opened document or null if operation was cancelled, or if is true and an error occurred while loading the document.