Help - Search - Members - Calendar
Full Version: Undeclared identifier: 'TfrxADODatabase'
Fast Reports forum > Fast Reports Products > FastReport 4.0
Lonnie Kong
procedure PrintRecord;
var
DB : TfrxADODatabase;
begin
with FrxRpt do
begin
DB := TfrxADODatabase(FindObject('ADODatabase'));
DB.Connected := False;
DB.DatabaseName := DM.AConnect.ConnectionString;
DB.Connected := True;
end;
end;

When I compile, the error message shows "Undeclared identifier: 'TfrxADODatabase'"

Would you tell me which Unit should be use ?
Lonnie Kong
QUOTE(Lonnie Kong @ Dec 16 2011, 11:33 PM) *
procedure PrintRecord;
var
DB : TfrxADODatabase;
begin
with FrxRpt do
begin
DB := TfrxADODatabase(FindObject('ADODatabase'));
DB.Connected := False;
DB.DatabaseName := DM.AConnect.ConnectionString;
DB.Connected := True;
end;
end;

When I compile, the error message shows "Undeclared identifier: 'TfrxADODatabase'"

Would you tell me which Unit should be use ?


I solved by myself, use frxADOComponents
very hard to find solution on the web......

gpi
QUOTE
very hard to find solution on the web......

Yes. Very hard
http://www.fast-report.com/en/faq/faq.php?ID=401#3834
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.