Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TBasedxReportLink.LoadDataFromFile(string) Method

Loads a report from a specified file into the Print Preview window.

#Declaration

Delphi
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