I'm using the MyDACDatabase components to connect my report build with FastReport 4 to my MySQL database. I can edit it normally and test in the FastReport designer when using my Delphi's IDE, even compile the application, but when I open the form that have the report, I have the exception Class not found: TFrxMyDACDatabase not found. How can I fix this error?
3 Answers
You should install FastReport X MyDAC Components from MyDAC 5 to be able to use the TfrxMYDACDatabase component. For more information please read the ReadMe.txt file in the %MyDAC%\Demos\Win32\ThirdParty\FastReport\FRX\ directory. %MyDAC% is the MyDAC installation path on your computer, X is the version of the Fast Report components that you use.
(Quoting from Something change in version 5 for tfrxMyDacDatabase (Version 4 no problem))
The solution is very simple. I realised that in the FastReport 4's tab I have a component named frxMyDACComponents in the pallete that I installed following the instructions in the MyDAC's Demos folder (in my case, placed into C:\Users\Public\Documents\Devart\MyDAC for Delphi 7\Demos\ThirdParty\FastReport\FR4\ReadMe.txt). When I placed this component in my form, 2 units were declared in the uses clause: frxDACComponents and frxMYDACComponents. Just that was needed to this problem. Thanks for the help of everyone.