Is the DBImage component in RB derived from the TDBImage component in Delphi. I have a patch for Delphi component that will print any image type. I'm how I can use it RB
The TppDBImage has its own blob stream loading logic, check out the TppDBImage.LoadPicture method in ppCtrls.pas. We are open to suggestions for improvements to this code - please send any suggested modifications to support@digital-metaphors.com and we can consider adding them to the future code base.
The Delphi VCL controls such as TDBImage are visual controls designed to be used on a windows form. The RB RCL components such as TppDBImage are not windows controls and are designed to be used within a report. For this reason the RCL components do not descend from the Delphi VCL counterparts. However, the RCL components do use the underlying VCL architecture, for exampel the TppImage component has a Picture property that is type TPicture.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
I've added code to various reports that allows a ppImage to load just about anything (using GraphicEx, Graphics32 and even load AutoCAD/DXF using Cad soft tools' CadVCLImport). I'm curious as to how the TDBImage patch figures out what kind of file is stored in the blob.
Do you know how the patch determines graphic type? By file extension or examining blob/stream data?
Is the patch freely available? If so, do you have a link?
Comments
Delphi. I have a patch for Delphi component that will print any image type.
I'm how I can use it RB
Thanks
The TppDBImage has its own blob stream loading logic, check out the
TppDBImage.LoadPicture method in ppCtrls.pas. We are open to suggestions for
improvements to this code - please send any suggested modifications to
support@digital-metaphors.com and we can consider adding them to the future
code base.
The Delphi VCL controls such as TDBImage are visual controls designed to be
used on a windows form. The RB RCL components such as TppDBImage are not
windows controls and are designed to be used within a report. For this
reason the RCL components do not descend from the Delphi VCL counterparts.
However, the RCL components do use the underlying VCL architecture, for
exampel the TppImage component has a Picture property that is type TPicture.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I've added code to various reports that allows a ppImage to load just about
anything (using GraphicEx, Graphics32 and even load AutoCAD/DXF using Cad
soft tools' CadVCLImport). I'm curious as to how the TDBImage patch figures
out what kind of file is stored in the blob.
Do you know how the patch determines graphic type? By file extension or
examining blob/stream data?
Is the patch freely available? If so, do you have a link?
Cheers,
EdB