Page 1 of 1

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

Posted: Fri Oct 07, 2011 1:39 am
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

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

Posted: Fri Oct 07, 2011 5:33 am
by mahdi7s
i changed Data Bound's Data Source to my custom Business object and my problem solved:biggrin:

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

Posted: Fri Oct 07, 2011 5:57 am
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.