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

Report Template LoadFromFile

edited October 2006 in General
Hi,

Please help as I am having an issue with report template rtm file:

1) An exception error occurred 'Class tdaDataModule not found' when I
attempt to load a report template .rtm file with following codes:

ppReport1.Template.FileName := 'c:\test.rtm';
ppReport1.Template.LoadFromFile; <---- Error occurred here
ppReport1.print;

I have no idea where tdaDataModule has been used?

Thanks for your support.

Cheers,
Victor



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited October 2006
    Hi Victor,

    The TdaDataModule is essentially the view you see when you select the data
    tab in the designer (DADE). If you do not have any data views inside the
    data tab for this report, try opening it and re-saving. This should remove
    all the datamodule references from the template. You can also try saving
    the template to ASCII and manually remove all references to this object.

    If you do have data views defined for this report, you will need to add at a
    minimum, daDataView, daQueryDataView, daDataModule, and the Dade plugin you
    are using (i.e. daDBBDE, daADO, etc).

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.