fastreport使用中,问题,(100分)
Page = frReport1->Pages->Pages[0];
运行到这句时,出错,message:List index out of bounds(0)
为什么回下标越界的啊?
问题点数:0、回复次数:2Top
1 楼bpaibgy(东东)回复于 2003-08-04 13:58:46 得分 0
不明白,能再具体点吗?Top
2 楼myhui(扬灰)回复于 2003-08-04 14:11:54 得分 0
使用Fastreport
//处理表头
TfrMemoView* v = new TfrMemoView(); //定义memo
TfrBandView* b = new TfrBandView(); //定义band
TfrPage* Page ;
Page = frReport1->Pages->Pages[0]; //-------------------这句出错!!!
b->SetBounds(0, 20, 0, 20); // 设置band的属性
b->BandType = btReportTitle ;
Page->Objects->Add(b);
v->SetBounds(20, 20, 200, 20); //设置memo的属性
v->BandAlign = baWidth;
v->FillColor = clTeal;
v->Prop["Alignment"] = frtaCenter;
v->Prop["Font.Style"] = 2 ;
v->Prop["Font.Color"] = clWhite ;
v->Memo->Add("数据分析结果报表打印");
Page->Objects->Add(v);Top




