Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I use THBImage with CrystalReports?

thbimage
0
Posted

How can I use THBImage with CrystalReports?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123