Folks, This is a re-send of a problem I still don't have resolved. It's something that's working inside my application's executable, but does NOT work inside a DLL library that's called by the EXE. Anybody had this problem???
I tried a simple test here using Delphi 2009, RB 11.04 and did not encounter any issues.
I modified the RBuilder\Demos\DLL example to include ppPNG in the uses clause so that the PNG support would be linked into the .dll project. I can then use the Desgner embedded in the .DLL to load and preview PNG images.
The "something" that you did is to register the PNG support with ReportBuilder, see Nico's reply to your post last April.
To register classes for use at Delphi design-time, you install a package into the Delphi IDE.
To register classes with your Delphi project (.exe or .dll) you include the a reference to the Delphi unit your 'uses' clause.
As a test, try creating a new project that contains only a Report and Designer and a button to show the Designer. Now build and run. Are you able to create reports that include PNG images? The answer is going to be no, because the PNG support needs to be added to the test application. For an example see ppJPEG.pas and ppGIF.pas in RBuilder\Source. You need a similar unit, myRbPng let's call it that can register whatever PNG TGraphic descendant you are using with RB. Again, see Nico's reply to your post last April.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
I tried a simple test here using Delphi 2009, RB 11.04 and did not encounter
any issues.
I modified the RBuilder\Demos\DLL example to include ppPNG in the uses
clause so that the PNG support would be linked into the .dll project. I can
then use the Desgner embedded in the .DLL to load and preview PNG images.
The "something" that you did is to register the PNG support with
ReportBuilder, see Nico's reply to your post last April.
To register classes for use at Delphi design-time, you install a package
into the Delphi IDE.
To register classes with your Delphi project (.exe or .dll) you include the
a reference to the Delphi unit your 'uses' clause.
As a test, try creating a new project that contains only a Report and
Designer and a button to show the Designer. Now build and run. Are you able
to create reports that include PNG images? The answer is going to be no,
because the PNG support needs to be added to the test application. For an
example see ppJPEG.pas and ppGIF.pas in RBuilder\Source. You need a similar
unit, myRbPng let's call it that can register whatever PNG TGraphic
descendant you are using with RB. Again, see Nico's reply to your post last
April.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com