I have a report which links to an image field in a TDataSet. When this is a bitmap then all is well, but it won't even open the report if it is a JPEG.
Thanks. I am using 11. Is there a way to default this when an DBImage is created. At the moment it throws an exception when an image field is dragged onto the designer and then when you do any actions until the type is set to JPEG.
I have tried setting the GraphicType to JPEG in the Designer.OnComponentCreate which is half way there but it still throws an exception before this event is called.
Well, yes that would be an option but as this is a sytem that I'm doing for my daughter's Ph.D that is the expensive option as I won't get to charge it on to a client :-)
Comments
determine the graphic type by analyzing the stream header.
For prior versions, set DBImage.GraphicType to JPEG and include ppJPEG in
the uses clause of the project.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
is created. At the moment it throws an exception when an image field is
dragged onto the designer and then when you do any actions until the
type is set to JPEG.
I have tried setting the GraphicType to JPEG in the
Designer.OnComponentCreate which is half way there but it still throws
an exception before this event is called.
I recommend updating to RB 12. The DBImage.GraphicType defaults to
AutoDetect. Download a trial version and give it a try.
Using the OnComponentCreate would have been my other recommendation.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
for my daughter's Ph.D that is the expensive option as I won't get to
charge it on to a client :-)