Home Subreports

Subreports in dll's

edited August 2002 in Subreports
Currently we are getting our report from a dll. What I need to do now is
to break up on report and get each of the 5 main subreports out of 5
different dll's and be able to skip a subreport if that dll doesn't
exist. Is it posible to get a subreport out of a dll? Or to merge
report pieces from multiple sources?

Comments

  • edited August 2002
    Being handled via email.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited August 2002
    We've run into quite a few problems attempting to load multiple DLLs that
    contain ReportBuilder. The unit level registration scheme (where classes are
    registered) usually raises errors such as: already registered.
    Also, what meaning does a report (or the objects it contains) have in the
    context of another DLL or the main app. From a Delphi standpoint, it's a
    totally different class.

    I would try to use report templates or Delphi packages instead of DLLs. See
    the Developer's Guide (deployment sections) for more on this...


    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
  • edited August 2002
    I am using packages under all of it. The dll's and the exe all are
    built with runtime packages including the reportbuilder bpl's.

  • edited August 2002
    Hi Ryan,

    you must have Tom misunderstanding. It doesn't matter if you are using
    runtime packages of ReportBuilder, you should create a package that replaces
    your DLL that keeps your reports.

    HTH,
    Chris Ueberall;

  • edited August 2002
    What I want is a main report that can have a subreport added into it
    from another unit. These pieces may or may not exist and I can
    determine that in the main report so the main report is looping through
    a list of objects that will return a piece of the report to be plugged
    into main one. Each of these pieces is completely different, uses
    different pipeline, different components and different layouts.

    As far as the dll's and packages, if all the dll's are using runtime
    packages all of the reportbuilder class registration happens once in a
    common location and all the dll's are sharing that. The dll is just a
    piece added on top.

    I ran into the the class registration with frames from our dll's and
    solved it with the packages so I don't feel that will cause a problem if
    I can get the pieces from several locations within a single exe I should
    be able to move them to a dll without much work.

  • edited August 2002
    Ryan,


    you can't place your reports inside a DLL, you have to use a BPL (a Delphi
    specific form of a DLL, respecting RTTI) instead!
    Was that clear enough?

    HTH,
    Chris Ueberall;
  • edited August 2002
    I think I understand the issue with dll's vs packages and can deal with
    that later. The part that I need help with is the following

    Ryan Jones wrote:




  • edited August 2002
    Sent DynamicSubReportCreation.zip...

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation

This discussion has been closed.