Page 1 of 1

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

Posted: Sat 28 Apr 2007 12:53
by Daniel Fagnan
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

Posted: Thu 03 May 2007 07:21
by Jackson
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).

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

Posted: Sat 05 May 2007 14:38
by Daniel Fagnan
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.

Just drop default database for each table inside report

Posted: Sat 05 May 2007 17:42
by Daniel Fagnan
I just delete frxMydacDatabase inside each report.
Automaticly each MyDacTable and MyDacQuery compoenets fill database name with Myconnection1 inside data module

Posted: Mon 07 May 2007 12:09
by Jackson
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.