How can I use THBImage with CrystalReports?
For this example you need a VB project containing a crystal reports designer. Add a DB Connection to a database table that contains at least two fields. The Id (pimary key) plus a text field that contains a filename to the image file. Simply implement the Format event. There you have access to the DB Fields and you can use the THBImageEdit object to load the picture file and to calculate the proper display size. You can not place a THBImage control on the CrystalReports designer because Crystal Reports just allows some specific cntrols. In the example below we use CrystalReports picture control to display the picture. Normally it is possible to load the image data directly from a DBField, but this didn\’t work in our constellation (CrystalRepprts 7, MsAccess 97). Other DBMS or later versions of CrystalReports may behave differently and this line may work: ie.PicRawData = FieldImage.Field.