Cannot convert type 'Stimulsoft.Report.Web.StiWebReport' to 'Stimulsoft.Report.StiReport'

Stimulsoft Reports.NET discussion
Post Reply
forestmarie
Posts: 4
Joined: Tue Aug 19, 2008 9:08 am
Location: Denham Springs, LA

Cannot convert type 'Stimulsoft.Report.Web.StiWebReport' to 'Stimulsoft.Report.StiReport'

Post by forestmarie »

Just downloaded the trial and am trying to display a report in Visual Studio 2008/.NET 3.5 in a web application.

I've looked at the demo video and it shows it dragging a StiReport object onto the form.

My problem is I only have access from the toolbox to StiWebReport and StiWebViewer.

It seems as if the StiWebViewer's Report property is exposing a StiReport instance rather than a StiWebReport instance.

If any there reason why I am not getting the StiReport on my toolbox?

:toothgr:

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Cannot convert type 'Stimulsoft.Report.Web.StiWebReport' to 'Stimulsoft.Report.StiReport'

Post by Edward »

Hello.

Yes, it is true, StiWebViewer.Report property has type of the StiReport.

StiWebReport is a sort of 'container' for the StiReport class.

Please assign that property as following:

Code: Select all

stiWebViewer1.Report = stiWebReport1.GetReport();
Thank you.
Post Reply