"Grid Index Out of Range" - Quick Report 2.0 with Delphi 2
You get this message because of a bug in the VCL. I still use D2 so i
don't know if it has been fixed yet. The way round it is to set the
DataSource property of all the grids attached to the table to nil, then
reset them after printing. I know it is a messy way to do it, but I had
this problem (and had very little time to fix it) and this does work.
Maybe someone has a better solution.
Can't think why it doesn't work if you create separate tables to base
the report on. QRReport scrolls through the dataset to create the print
or preview and for some reason, D2 goes pear shaped when the last row is