unknown TfrxDBDataset message when try to show report preview with pascal script
Hello,
I have problem.
I use this code from FastReportDemo exe file from report script in my own report:
procedure TableObject1OnManualBuild(Sender: TfrxComponent);
var
DS: TfrxDBDataset;
begin
DS := TfrxDBDataset(Report.GetDataset('Bio'));
...
end
but when try run this report preview (Ctrl+P) I catch "unknown TfrxDBDataset".
Comments
Hello!
To access the report datasets, you must first add them to the report. To do this, select the menu Report->Data in the report designer and add the available datasets there. Your dataset Name or Alias must be equal to 'Bio'
Hello,
Yes, I've added dataset. But the script is not compiled, error message: "Unknown type: TfrxDBDataset".
Sorry for the not entirely accurate information in my first post
Add frxCustomDBRTTI unit in the uses list in the Delphi's code.
Thanks, your solution worked for me!