Shows a file open dialog, allows the user to select a C1DX or C1D file, and loads the selected file into the current preview pane. If an exception occurs while loading the file, an error message is displayed, and the method returns false.

Namespace:  C1.Win.C1Preview
Assembly:  C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)

Syntax

C#
public bool FileOpen()
Visual Basic
Public Function FileOpen As Boolean

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.

See Also