var
  a: TComponent;for i := 1 to n do
begin
  a := QRReport1.FindComponent(Format('qrlabel%d', [i]));
  if (a <> nil) and (a is TQrLabel) then
    TQrLabel(a).Caption := listbox1.Items[i - 1];
end;