DataSet confusion

Hi All, I'm a hobbyist coder now that I've retired from a very long coding career. Haven't written a line of code in almost a decade. Needless to say, I'm really behind in current technology. I splurged and bought a Delphi Pro 13.1 license when I thought of a little app I wanted to work on strictly for fun but didn't want to deal with some of the Community version issues. It will never see the light of day outside my laptop. In any case...

All of my professional report coding was done with Digital Metaphors' Report Builder which I had a pretty good handle on at the time. Unfortunately, that's a pretty pricey option for my use, so I was pleased when I found the free version of FastReports available for Delphi. I think it's version 2024.1.2 or close. How different could the two products be, I thought. Answer - different enough to cause me headaches.

Right off the bat I'm running into what must be a simple issue that surely has a simple answer. I dropped a frxReport and frxDBDataset. I connected the Dataset directly to my TTable - not a Delphi TDataset component. I open the designer, then the Report/Data menu which pops up the name of the frxDBDataset which I select and click out of the dialogue with OK. I add a MasterData band to the report page and drag four of my TTable's fields into it. The OpenDataSource property is set to True. I select File/Preview and the Preview window pops open and there's no data - plus an error stating:

"The following error(s) have occured: Cannot use the same dataset for Report.Dataset and Band.Dataset". What does that even mean? I've tried every variation of Dataset selection and absolutely nothing prevents the error while showing my 18 test data records. Please clue me in. Please.

TIA.

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.