Loads the specified file (which must be a valid C1DX, C1D or C1MDX document)
into the current preview pane.
Namespace:
C1.Win.C1PreviewIf fileName does not exist or is a directory, shows the file open dialog and allows the user to select a file to load. In that case fileName specifies the initial directory for the dialog.
Assembly: C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)
Syntax
C# |
---|
public bool FileOpen( string fileName ) |
Visual Basic |
---|
Public Function FileOpen ( _ fileName As String _ ) As Boolean |
Parameters
- fileName
- Type: System..::..String
The name of the file to load, or the initial directory for the file open dialog.
Return Value
true if the file was successfully loaded, false if an error occurred or the user cancelled the dialog.Remarks
If a handler is assigned to the Error event,
that handler is invoked but no message is shown to the user.