I just developed a very cool application and dnn was very handful for what I needed. I have a common C# class library that is referenced to the website. Here I have all the database classes, DB_Helper class(which helps me with database operations) and a Common class for all other stuff. So I have things nicely organized. I must say I'm very happy with all this, there are just two problems with ReportViewer...
I want to make a simple Report and display it in a report viewer. Well I already succeeded on a local IS(on my laptop). It just does not work on server. I had some errors with Microsoft.ReportViewer.WebForms dependency, but now I'm stuck with this error: "...Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel or one of it's dependencies..." even though I have all three dll files in a bin folder on server. I can paste the whole error if needed.
- Microsoft.ReportViewer.WebForms.dll
- Microsoft.ReportViewer.WebForms.dll
- Microsoft.ReportViewer.ProcessingObjectModel.dll
And I also have antother question: The best thing would be, if I could create a Report.rdlc in my class library and than assign it to a report viewer on a dotnetnuke module. But I don't know if that's possible. I tried it but I couldn't get a report class or object from dnn (I remmember that concept when I was working with Telerik reports a year ago...). So I found out that I couldn't do this:
reportViewer1.LocalReport = someReport; //I thing LocalReport is Get only
This was dissapointing. I can only assign it from aspx html code but from here you can't see objects and other stuff from outside the website project. So Report.rdlc must be in dnn project. I guess ServerReport tag is not for what I want?? or is it?
When I fix this I'm done with this app so I have to say... it was a fun one-month ride :)