Something change in version 5 for tfrxMyDacDatabase (Version 4 no problem)

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Daniel Fagnan
Posts: 58
Joined: Fri 13 Oct 2006 00:08

Something change in version 5 for tfrxMyDacDatabase (Version 4 no problem)

Post by Daniel Fagnan » Sat 28 Apr 2007 12:53

With version 4
I can assign a variable
ex onstartreport assign new Location of server database

frxMydacDatabase1.server =

Each report has a frxMydacDatabse inside
I develop on localhost but when I install my sofware I should
change the location of server by hand on each report .

With the version 4 no problem at runtime
frxMydacDatabase1.server =
Now when I load my application ir eceived message that tFrxMydacDatabase class was not locate I search frxMyDacdatabase. pas
was not found nothing
How to assign new server location to frxMyDacdatabase.properties at runtime . to change the location of server at runtime

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Thu 03 May 2007 07:21

Please make sure that you have FastReport MyDAC Components installed.
To check it, open the Component->Install Packages dialog. There must be item with the "FastReport X MyDAC Components" name and it must be checked. (X is the FastReport version that you use).

Daniel Fagnan
Posts: 58
Joined: Fri 13 Oct 2006 00:08

This components is installed but inside my reort frxMyDacDatabase component class is not visible

Post by Daniel Fagnan » Sat 05 May 2007 14:38

All my report was create by previous version (4) of myDac
inside myreport in tab DAta I have one component
frxMyDacDatabase1 if click in properties server, password etc. are available.
But when by code I tried to alter this properties
ex : on frxreport1.onstartreport
FrxmyDacDatabase1 :=

is report variable.

FrxREport1.loadreport('0001.fr3')
FrxReport1.Params['serverName'] := 'localhost' // or 192.168.1.141'

This approach work with version MyDac4 and with new fastReport x MyDac compoenents we received error message then class tFrxMydacDatabase doesn't exist.

Daniel Fagnan
Posts: 58
Joined: Fri 13 Oct 2006 00:08

Just drop default database for each table inside report

Post by Daniel Fagnan » Sat 05 May 2007 17:42

I just delete frxMydacDatabase inside each report.
Automaticly each MyDacTable and MyDacQuery compoenets fill database name with Myconnection1 inside data module

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Mon 07 May 2007 12:09

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.

Post Reply