cancel
Showing results for 
Search instead for 
Did you mean: 

Display image from datatable field to report...

0 Kudos

Hi, I want to display a image from a datatable to a report.

I create a column of type image:

dtData.Tables[0].Columns.Add("BarCodeImage", typeof(Image));

Then in the report I add this column but I don't see nothing.

I'm using VS2019 and c#.

Any idea?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Get the report working and displaying the image in CR Designer first.

Once it works there then it will work in your app.

Answers (2)

Answers (2)

0 Kudos

Hello, I now have the image in sqlserver field of type varbinary(max).

So when I select the record from sqlserver I have the image value in the datatable. I create a dataset for the report with the fields in the datable.

I see all the data on the report execpt the image. I need to convert the image that com from sql server?

I set this:

report.Database.Tables[0].SetDataSource(dtData.Tables[0]);

0 Kudos

On my WIKI page there is a Parameter test app with a drop down box with various objects types:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

how-to-parameters-in-crystal-reports-for-visual-studio-net

Add the image to the report and see what it uses to get the info and then use the same to add the image.

And use SP 31 if you are not already using it