Report Builder 3.0 SWITCH expression DEFAULT/ELSE

There is no default clause in the SSRS Switch expression. However, you can always modify your expression slightly: =Switch ( Parameters!UserFranNr.Value = “99”,”ID99″, Parameters!UserFranNr.Value = “87”,”ID87″, true, “ID0” ) Since any time the last condition is hit it will be explicitly evaluated to true, the last row will effectively act as a default value. I’ve … Read more

Could not load file or assembly ‘Microsoft.ReportViewer.Common, Version=11.0.0.0

Dont know if this is good to anyone, but search all these dlls: Microsoft.ReportViewer.Common.dll Microsoft.ReportViewer.ProcessingObjectModel.dll Microsoft.ReportViewer.WebForms.dll Microsoft.ReportViewer.WinForms.dll Microsoft.ReportViewer.DataVisualization.dll You find them in C:\Windows\assembly\GAC_MSIL\…, and then put them in the references of your project. For each of them say: local copy, and check for 32 or 64 bit solution.

Viewing SSRS Reports in an ASP.net MVC Site

No, not in a MVC view. But you can have a web forms pages which have server controls in them mixed in with your MVC site. Hmm, just googled “mix asp.net mvc and web forms” to find some examples, and google questioned whether I’m human or not 🙂 Anyway, here’s a link – http://www.packtpub.com/article/mixing-asp.net-webforms-and-asp.net-mvc – … Read more

Tracking report usage

There is some good advice and queries for generating reports on this in the following article. For example, if you want to see the most used reports, you can do the following: SELECT COUNT(Name) AS ExecutionCount, Name, SUM(TimeDataRetrieval) AS TimeDataRetrievalSum, SUM(TimeProcessing) AS TimeProcessingSum, SUM(TimeRendering) AS TimeRenderingSum, SUM(ByteCount) AS ByteCountSum, SUM([RowCount]) AS RowCountSum FROM (SELECT TimeStart, … Read more