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

is it possible to create a custom runtime package for rb?

edited January 2004 in General
Hi,

Delphi 5.0 Professional update pack 1
RB Enterprise 6.03

Does anyone know if it is possible to create a custom runtime package that
contains all of report builder? What I would like to do is place all of the
vcl and report builder into one package and ship that with my exe. I was
able to get most of it into a package by creating one with only dcus. The
exe appeared to work fine, but I also have dlls that need to use the
package. The dlls containing rb reports would not load. They tried to
register another instance of TraCodeModule. I think this was due to the
fact that I did not include the dcus (because I do not know which dcus to
include) contained in rbRIDE55, rbRAP55, and rbUSER55 in my custom package.
I guess the DLLs and the EXEs tried to compile those in which causes the
conflict.

I am doing all of this because my exe will not run on win98 and building
with runtime packages solves that. I guess by making the exe small enough
to load in memory?

Anyway if anyone has any information about creating a package like this, I
would be most grateful.

I think right now building with runtime packages cause us to ship with
something like 40 bpls. We really dont want to do that.

Thanks,
Bob

Comments

  • edited January 2004
    Hi Bob,

    The reason you are receiving an error is that your original package is
    loading certain dcu files and the dll file is trying to re-register the same
    files. The problem with using dll files is that just based on the fact that
    they contain reports, they also have to contain all the ReportBuilder dcu's.
    This is why, when you try to mix the two (bpl's and dll's) you get an error.
    My suggestion would be to move away from using dll's and stick with Delphi
    packages. Place your reports in a separate package that requires the
    package that contains all the runtime dcu's of ReportBuilder.

    --
    Best Regards,

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