Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Error showing a report

edited October 2002 in General
I've designed a report using end-user report design in my application. If I
open this report in end-user report designer, everithing works fine.
However, if I try to load the report and preview it programaticaly, I
receive the message: "Class TdaDataModule not found. Ignore and continue ?".
Sometimes the message changes the class name to TraCodeModule.

My code to open the report:

procedure ShowReport(MenuItem : String);
begin
ppReport.Reset;
ppReport.Template.DatabaseSettings.Name := MenuItem;
ppReport.Template.LoadFromDatabase;
ppReport.Print;
end;

What could be wrong ?

Thanks in advance,

Mauro Assis
Athena


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 03/10/02

Comments

  • edited October 2002
    Hi Mauro Assis,

    you must be using different applications.
    Make sure that both projects includes the same set of units that determines the enduser's environment.

    Unit Name Feature
    -------------------------------------------------------------------------
    daDatMan DADE user-interface ('Data' tab)
    raIDE RAP user-interface ('Calc tab)

    see tech-tip 'Controlling the End-User Environment'

    HTH,
    Chris Ueberall;
This discussion has been closed.