TfrxBarCodeView Problem
I am trying to add barcodeviews in code the following code doesn't work.
What is wrong?
TfrxReportPage * CurrentPage;
TfrxBarCodeView * BarcodeVw = NULL;
frxReport->Clear();
CurrentPage = new TfrxReportPage(frxReport);
CurrentPage->CreateUniqueName();
CurrentPage->SetDefaults();
int TopPos = 60;
for(int i = 1;i <= 4;i++)
{
BarcodeVw = new TfrxBarCodeView(CurrentPage);
BarcodeVw->CreateUniqueName();
BarcodeVw->Left = 56;
BarcodeVw->Top = TopPos;
BarcodeVw->Width = 128;
BarcodeVw->Height = 60;
BarcodeVw->Zoom = 1;
BarcodeVw->BarType = bcCode39;
BarcodeVw->Rotation = 0;
BarcodeVw->BarCode->Text = "12345678";
TopPos += 70;
}
frxReport->ShowReport(true);
What is wrong?
TfrxReportPage * CurrentPage;
TfrxBarCodeView * BarcodeVw = NULL;
frxReport->Clear();
CurrentPage = new TfrxReportPage(frxReport);
CurrentPage->CreateUniqueName();
CurrentPage->SetDefaults();
int TopPos = 60;
for(int i = 1;i <= 4;i++)
{
BarcodeVw = new TfrxBarCodeView(CurrentPage);
BarcodeVw->CreateUniqueName();
BarcodeVw->Left = 56;
BarcodeVw->Top = TopPos;
BarcodeVw->Width = 128;
BarcodeVw->Height = 60;
BarcodeVw->Zoom = 1;
BarcodeVw->BarType = bcCode39;
BarcodeVw->Rotation = 0;
BarcodeVw->BarCode->Text = "12345678";
TopPos += 70;
}
frxReport->ShowReport(true);