TBasedxReportLink.LoadDataFromFile(string) Method
Loads a report from a specified file into the Print Preview window.
Declaration
procedure LoadDataFromFile(const AName: string); virtual;
Parameters
Name | Type |
---|---|
AName | string |
Remarks
Call this method to load a report from a file into the Print Preview window using the full file path passed as the AName parameter. This method can only load a report if it was previously saved to the file using the SaveDataToFile method. Loading a report via the LoadDataFromFile method call updates the report link’s StorageName and DataSource properties with the file path and rldsExternalStorage, respectively.
The LoadDataFromFile method is declared as virtual to allow TBasedxReportLink descendants to implement their own approach to reading the report stored in the file.
See Also