cancel
Showing results for 
Search instead for 
Did you mean: 

Image not changing for each label from database stored images

david_mills02
Participant
0 Kudos

I have stored images in a database file to use when printing a sheet of labels

The image is not changing for each label when the report is printed

The text for each label changes as per the database table when the report is printed

I have checked the image in each record as a picture on the form in the database and the image saved is correct for the text.

The same image is shown on the report for all the labels.

The image is saved in a Datatable as a Column.DataType = GetType(Byte())

I have used a Label layout with 2 columns and 3 rows

I have used a crBlobFieldObject to display the image on the label

I am using Crystal Reports on a Microsoft Visual Studio program

The reason for storing the image in a database is that the images are created dynamically from text to make a barcode and that changes for every report

Accepted Solutions (1)

Accepted Solutions (1)

david_mills02
Participant

Thank you for the replies - I have solved the problem - when I was reading the image I was JPEG and when I was storing the filestream I had changed to GIF in error due to a copy and paste of code. Changed GIF to JPEG and all worked correctly

Answers (2)

Answers (2)

DellSC
Active Contributor
0 Kudos

What type of database are you using and what type of connection? Also, what is the specific field type and image type that you're using?

-Dell

0 Kudos

What CR for VS SP are you using?

Don