Einzelnen Beitrag anzeigen

renekr

Registriert seit: 27. Feb 2005
Ort: Karlsbad
534 Beiträge
 
Delphi 2007 Enterprise
 
#5

Re: Array oder Memo in Rave Report

  Alt 27. Sep 2005, 09:51
Hi,
vielen Dank.
Ich habe es unter der Zeit sg gelöst:

Im Rave habe ic 2 MEtacomps erstellt mit den unten 2 datafield name.
Da ich pro tabsheet 2 charts habe und das tab mit radiogroup1 index wechselt habe ich die charts namen per case of geholt.

das klappt soweit gut.

2 Charts werden übergeben:
getcols:
with Connection do begin
// PieChart is the name of the DataField that you will use in Rave
WriteField('chart', dtGraphic, 40, '', '');
WriteField('charttyp', dtGraphic, 40, '', '');
end; { with }

-------------
getrows

begin
// Chart is the name of the TChart component you are wanting to print
case RadioGroup1.ItemIndex of
0:WriteChartData(Connection,Chart1);
1:WriteChartData(Connection,Chart3);
2:WriteChartData(Connection,Chart5);
3:WriteChartData(Connection,Chart8);
4:WriteChartData(Connection,Chart10);
5:WriteChartData(Connection,Chart12);
end;

case RadioGroup1.ItemIndex of
0:WriteChartData(Connection,Chart2);
1:WriteChartData(Connection,Chart4);
2:WriteChartData(Connection,Chart6);
3:WriteChartData(Connection,Chart7);
4:WriteChartData(Connection,Chart9);
5:WriteChartData(Connection,Chart11);
end;

-------------------


Danke nochmals.
  Mit Zitat antworten Zitat