Dataset Error - not used Datased closed

diaswdiasw Germany
edited 4:10AM in FastReport 3.0
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?


Comments

  • edited 4:10AM
    Probably you forgot to switch databand to use new dataset. Save your report to .fr3 file and look at it in any text editor - search for pFibDataset.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.