declarar variable en QReport
Hola, buenas tarde
Tengo una stringGrid para imprimir en QReport pero no se donde declarar la variable i:
void __fastcall TForm3::qr1NeedData(TObject *Sender, bool &MoreData)
{
MoreData=i<Form1->sg->RowCount;
if (MoreData){
QRLabel1->Caption=Form1->sg->Cells[1][i];
QRLabel2->Caption=Form1->sg->Cells[2][i];
QRLabel3->Caption=Form1->sg->Cells[3][i];
QRLabel4->Caption=Form1->sg->Cells[4][i];
QRLabel5->Caption=Form1->sg->Cells[5][i];
QRLabel6->Caption=Form1->sg->Cells[6][i];
QRLabel7->Caption=Form1->sg->Cells[7][i];
}
i++;
}
Espero que me ayudeis.
|