Home General

TBarSeries- Access Violation

edited October 2001 in General
D5, RB 5.56

1)I would to know like I can add a Series to a TppChart () at RunTime. I am
using the following code:

a) OnClick Button
ppReportProvv.Template.LoadFromFile;
BarAgenti:= TBarSeries.Create (Self);

----I have a access Violation Here ----
BarAgenti.ParentChart:= ppTeeChart1.Chart;
--------------------------------------------------

ppReportProvv.Print

b) ppGroupFooterBand1BeforePrint{BarAgenti.Clear; BarAgenti.Marks.Style:=
smsPercent;
BarAgenti.Clear;
BarAgenti.Add(EurRoundCurrency(DyDataMod.TableAGENTIBudget.Value),
'Budget', clBlue ) ;

BarAgenti.Add(EurRoundCurrency(DyDataMod.TableAGENTITotaleFatturato.Value),
'Tot. Fatturato', clYellow ) ;
BarAgenti.Add(EurRoundCurrency(DyDataMod.TableAGENTIBudget.Value -
DyDataMod.TableAGENTITotaleFatturato.Value), 'Budget Restante' , clRed ) ;
Restante,' [clRed]);


I would appreciate if you could send me an example.


2) Like does a serie of TppChart (created at design time) be changed at
runtime?

Vincenzo Scarpellino
This discussion has been closed.