Home GuiPack RepList Class TReportListView Methods ReadFromXMLStream |
|
See also: CheckIfValidReplist, DataID, LoadFromXMLFile, LoadLinesFromFile (ReportListView), LoadLinesFromFile (RLData), OnPercentDone, ReadFromOpenXMLFile, ReadFromXMLString (ReportListView), ReadFromXMLString (RLData), SaveAsXMLFile, WriteToOpenXMLFile, WriteToXMLStream, TRepListXmlTag, OnPercentDone (DataTable) |
|
ReadFromXMLStream |
 |
Unit: | SDL_replist | Class: | TReportListView | Declaration: | function ReadFromXMLStream (InStream: TStream; DataID: string): boolean; |
The function ReadFromXMLStream
reads the data from the current position of the stream InStream. If the parameter DataID is empty, the first <replist> tag is evaluated and read into the report listview. If DataID is not empty, the entire rest of the stream 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 ReadFromXMLStream returns TRUE if both a valid starting tag <replist> and a valid end tag </replist> has been found and the report
listview has been updated. In this case the OnChange event is triggered.
Hint 1: |
The XML description of the listview data has to follow a certain order:
number of columns and rows have to precede all other data of the
control. |
Hint 2: |
ReadFromXMLStream is by a factor of 5 slower than
ReadFromOpenXMLFile. Thus you should avoid to use ReadFromXMLStream when reading large listviews with more than approx. 10000 cells. |
|