Dataset Error - not used Datased closed
diasw
Germany
I'm using FR 3.09 with Delphi 7.
I generated a Report (rep1) as a DotMatrixReport with a Dataset (pFIBDataset), frxDataset and PascalScript in it.
I copied this Report to rep2 and made changes, e.g. using another dataset ( pFIBKDataset) and frxDataset (Report - Data) and changed the PascalScript-commands to this dataset.
All changes are working, I can prepare and preview rep2 without problem (I am using a form and frxReport1).
Except!: I call rep1, preview. close it (in the rep1procedure, the corresponding datasets closes too). After that, I call rep2 and when the rep2procedure comes to frxReport1.prepareReport(True), an error occurs:
"EDataBaseError: pFibDataset: Operation not possible with closed Dataset"
Well, I am not using the Dataset pFIBDataset in Rep2, but in Rep1.
I suspect that there is still a link to pFIBDataset somewhere hidden in the report rep2.
But where?
I generated a Report (rep1) as a DotMatrixReport with a Dataset (pFIBDataset), frxDataset and PascalScript in it.
I copied this Report to rep2 and made changes, e.g. using another dataset ( pFIBKDataset) and frxDataset (Report - Data) and changed the PascalScript-commands to this dataset.
All changes are working, I can prepare and preview rep2 without problem (I am using a form and frxReport1).
Except!: I call rep1, preview. close it (in the rep1procedure, the corresponding datasets closes too). After that, I call rep2 and when the rep2procedure comes to frxReport1.prepareReport(True), an error occurs:
"EDataBaseError: pFibDataset: Operation not possible with closed Dataset"
Well, I am not using the Dataset pFIBDataset in Rep2, but in Rep1.
I suspect that there is still a link to pFIBDataset somewhere hidden in the report rep2.
But where?
Comments