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

RB 5.0 to 6.03 Issue

edited December 2001 in General
Hi,

I finally upgraded this weekend from RB Pro 5.0 to 6.03. I also updated
TExtraDevices at the same time. I was really surprised to see my EXE
jump by approx. 900K. Would moving from 5.0 to 6.03 cause this. I don't
think I made any other significant changes to the app before noticing the
large increase in the EXE size.

Thanks,

Dexter

Comments

  • edited December 2001
    The added features you get in 6.03 shouldn't cause that large of an increase
    in your footprint. Are there more reports stored in your exe by chance?
    Did you upgrade to RB 6.03 Pro or Enterprise? RB Enterprise includes RAP,
    which is the only feature not available in Pro.


    -------------------------------------------
    Article: Minimize Size of Application .EXE
    -------------------------------------------

    How can I minimize the size of my application
    executable (.exe) when using ReportBuilder?


    1. Part of the overhead is linking in the BDE library.
    Probably about 300K or so.

    2. Part of the overhead is linking the RB library.
    Probably about 600K or so for the core reporting library.

    If you include the Designer, Query Tools, etc. then
    there will be additional overhead.

    3. Any additional overhead will be added by the reports you create. Each
    report will contain description of all the objects on the report. View
    the .dfm file as text for an example.


    Strategies to minimize the size of the .Exe:

    1. Compile your project using the Delphi run-time packages option. This
    will create a small .exe. You then distribute the
    runtime packages along with your executable file.

    2. Store you report definitions to .rtm files or a database. Thus the
    report definitions are stored outside the .exe and only loaded as
    needed. If you have a large number of reports, this can drastically
    reduce the size of the .exe.

    3. Compile all of your reports into a Delphi package.
    Then your application only loads the package as needed.

    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited December 2001
    Hi Jim,

    All of my reports are compiled into the EXE but I did not add any new
    ones after I upgraded. I am using RB Pro.

    Thanks,

    Dexter
  • edited December 2001
    Hi Jim,

    I checked my .MAP file on my current development PC and a backup of my
    app that has RB Pro 5.0 still installed. When looking at the Bound
    resource files section I see many more entries in the system with 6.03.

    The 5.0 system has the following DFM files linked in:
    ppASDlg, ppPDlg, ppCDlg, ppTmDlg, ppTmEDlg, ppPrvDlg

    The 6.03 system has those plus:
    ppNoDataDlg, ppRWzDlg, rbIDE.res, ppIDEBmp.res, daJoinTableDlg, ppRichEd,
    ppPgSDlg, ppTxtDlg, ppGrpDlg, ppFmtDlg, ppGrdDlg, ppAbout, ppMemDlg,
    ppClcDlg, ppRstDlg, ppShfDlg, ppDemo... many others .

    I admit I normally do not browse this file very often but it looks
    suspicious with so many additional files showing up in the .MAP file.

    Thanks for any feedback,

    Dexter
This discussion has been closed.