Undeclared identifier: 'TfrxADODatabase'

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 ?

Comments

  • edited 3:08AM
    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......

  • gpigpi
    edited 3:08AM
    wrote:
    very hard to find solution on the web......
    Yes. Very hard
    http://www.fast-report.com/en/faq/faq.php?ID=401#3834

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.