procedure TfrmPCMSCrystalReportViewer.BuildColumnList; { Populate slColumns with the list of column. For each table in the report, add every column. } var I, J: Integer; Tbl: DatabaseTable; begin slColumns.Clear; with crReport1.Database do begin for I := 1 to Tables.Count do begin Tbl := Tables[I]; //process each column in table for J := 1 to Tbl.Fields.Count do //add column to list slColumns.Add(Tbl.Fields[J].DatabaseFieldName); end; //for end; //with end;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)