Class OpenCommand
Represents the "File|Open..." command. Also can be used for loading a file from the recent files list.
Inherited Members
Namespace: FastReport.Design
Assembly: FastReport.dll
Syntax
public class OpenCommand : DesignerCommand
Methods
GetEnabled()
Gets a value for the Enabled property.
Declaration
protected override bool GetEnabled()
Returns
Type | Description |
---|---|
System.Boolean | true if command is enabled. |
Overrides
Invoke()
Invokes the command.
Declaration
public override void Invoke()
Overrides
LoadFile(String, Boolean)
Loads a specified report file.
Declaration
public void LoadFile(string fileName, bool silent = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | File to load. |
System.Boolean | silent | true to suppress message dialog if load is failed. |