Ship report designer as DLL/BPL

I've got a registered version of FastReports 2.5 VCL. I don't want to ship FR6.BPL because it has too many dependencies, so I compile all that code into my application EXE instead. I don't currently include FR_Desgn (the report designer) because it adds about 500k to my EXE size.

I'm wondering if I can create a package with only FR_Desgn.pas and build a BPL file with just that module. Then load the BPL at run-time using LoadPackage().

It seems like this would work, unless FR_Desgn has a lot of external dependencies also and uses a lot of static/global variables.

Has anyone had any luck trying something like this?

Looking at the source code for FR_Class.pas, it seems like all I need to do is set "frDesignerClass" to a valid pointer in order to enable to report designer at run-time.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:27AM
    The designer is global and only 1 per app is allowed.
    it will be dependant on what ever controls or additional librarys are installed.
    fr bde components etc.
    the approach i like is to copy the datamodule and make the designer a stand alone exe and keep designing separate from the app itself.
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.