Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Assign JPEG to TppImage

edited June 2002 in General
For two days now, I've been trying to assign a jpeg image from a database
blob field to a TppImage in Report Builder 6. I get a error message saying "
bitmap is not valid " error. The code below works if the blob contains a BMP
file. The code:

ppimgLogo.Picture.Assign(frmMain.tblConfigCompanyLogo);

Any help would greatly be appreciated.

Thanks.

Peter

Comments

  • edited June 2002
    You can use the dbImage and change it's type to JPG, in that case you won't need
    to assign it manually.
    You must include the ppJpeg in the uses clause.

  • edited June 2002
    I'm trying to use a ppImage because it does not need a database field as a
    source. I have an ancestor form with a ppReport that has a standard look and
    feel of all my reports with the company logo. Can I assign a jpeg image to a
    dbImage without a datasource?

    won't need
  • edited June 2002
    Have you added ppJPEG to your uses clause?

    You should not try to assign the JPEG to a TppDBImage, but rather use a
    TppImage.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.