Cannot implicitly convert type 'string' to 'System.Drawing.Image'

Stimulsoft Reports.NET discussion
Post Reply
mahdi7s
Posts: 3
Joined: Fri Oct 07, 2011 1:23 am

Cannot implicitly convert type 'string' to 'System.Drawing.Image'

Post by mahdi7s »

Hi,
i have a very simple report that contains an image component to show the image from my linq to entities result.
my code is looks like this:

Code: Select all

            report.RegBusinessObject("myData", "myData", Entities.Table1.ToList());
            report.ShowWithWpf();
i got below error on "report.ShowWithWpf()" :
c:\Users\accountname\AppData\Local\Temp\qzor13nc.0.cs(42,23) : error CS0029: Cannot implicitly convert type 'string' to 'System.Drawing.Image'
i also got this error even my entities table haven't any row,
and if i remove the image component in my report the problem will be solved but i need it!

please help to solve this, i need this very soon.

Thanks
mahdi7s
Posts: 3
Joined: Fri Oct 07, 2011 1:23 am

Cannot implicitly convert type 'string' to 'System.Drawing.Image'

Post by mahdi7s »

i changed Data Bound's Data Source to my custom Business object and my problem solved:biggrin:
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Cannot implicitly convert type 'string' to 'System.Drawing.Image'

Post by HighAley »

Hello.
mahdi7s wrote:i changed Data Bound's Data Source to my custom Business object and my problem solved:biggrin:
Thank you for choosing Stimulsoft Reports. Have a Great Day!

Thank you.
Post Reply