Subreport without DataScource but with own List?
Hi There,
I have a problem creatin a Report with a Subreport.
Items from a DataScource should be displayed. So far so good. But they should be sorted, and I have no access to the DataScource for sorting them.
So, my idea was to create a TList (with TStringLists within) with everything from my DataScource I need. I can sort this TList and everything is fine. This works.
But now the sorted list showld be displayed. And as the TList is no real DataScource, the Subreport-thing doesn't work.
(I tried somethink with Memo's, but that's no good solution, as I can's text-size and color for single Items.)
So here my qustion: Is there any possybility to have something like a Subreport with my own List?
I thought of something like that:
global variable: itemForDetail
for i:=0 to myTList.count-1 do
begin
itemForDetail := myTList.Items[i];
Detail.print; // <--- ???
end;
So is there something like this? Or does anybody have another Idea?
Thanks a lot,
Thomas Voigt.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
I have a problem creatin a Report with a Subreport.
Items from a DataScource should be displayed. So far so good. But they should be sorted, and I have no access to the DataScource for sorting them.
So, my idea was to create a TList (with TStringLists within) with everything from my DataScource I need. I can sort this TList and everything is fine. This works.
But now the sorted list showld be displayed. And as the TList is no real DataScource, the Subreport-thing doesn't work.
(I tried somethink with Memo's, but that's no good solution, as I can's text-size and color for single Items.)
So here my qustion: Is there any possybility to have something like a Subreport with my own List?
I thought of something like that:
global variable: itemForDetail
for i:=0 to myTList.count-1 do
begin
itemForDetail := myTList.Items[i];
Detail.print; // <--- ???
end;
So is there something like this? Or does anybody have another Idea?
Thanks a lot,
Thomas Voigt.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
This discussion has been closed.
Comments
Which version of ReportBuilder and Delphi are you using?
Also please let us know which DB and connectivity you are currently using.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com