Home GuiPack RepList Class TReportListView Methods LoadFromXMLFile |
|
See also: CheckIfValidReplist, DataID, LoadLinesFromFile (ReportListView), LoadLinesFromFile (RLData), OnPercentDone, ReadFromOpenXMLFile, ReadFromXMLStream, ReadFromXMLString (ReportListView), ReadFromXMLString (RLData), SaveAsXMLFile, WriteToOpenXMLFile, WriteToXMLStream, TRepListXmlTag, OnPercentDone (DataTable) |
|
LoadFromXMLFile |
 |
Unit: | SDL_replist | Class: | TReportListView | Declaration: | function LoadFromXMLFile (FName: string; DataID: string): boolean; |
The function LoadFromXMLFile reads a report listview from the file FName. If the parameter DataID is empty, the first <replist> tag is evaluated and read into the listview control. If DataID is not empty, the entire file is read until a <replist> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not
case-sensitive). The property DataID is set to
the identification string of the XML data source. The function LoadFromXMLFile returns TRUE if both a valid starting tag <replist> and a valid end tag </replist> has been found and the report list view has been updated. In this case the OnChange event is triggered.
Hint 2: |
The XML description of the report listview data has to obey a certain order: number of columns and rows have to precede all other data of the control. |
|