on 01-21-2022 10:07 PM
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
Get the report working and displaying the image in CR Designer first.
Once it works there then it will work in your app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.