or
| <telerik:ReportViewer ID="rptView" runat="server" Skin="ReportViewer" SkinsPath="~/Teleriks/Images" ... /> |
| RptScope = ReportScopeProvider.GetNewObjectScope(); |
| using (RptScope) |
| { |
| InspectionReport result = (from ir in RptScope.Extent<InspectionReport>() select ir).First(); |
| this.DataSource = result; |
| } |
But I get an Exception:'The 'IObjectScope' is already closed' when I preview the report design or when I run it.
But if I debug thru it , I do see the data being returned. ie. If I step through each line of code posted above , then the report shows the data else I get the exception.
Am I missing something ?
| _gideonChart.PlotArea.Appearance.FillStyle.MainColor = Color.White; | |
| _gideonChart.PlotArea.Appearance.FillStyle.SecondColor = Color.White; | |
| _gideonChart.PlotArea.YAxis.Appearance.MajorGridLines.Color = Color.Gray; | |
| _gideonChart.PlotArea.YAxis.Appearance.MajorGridLines.Width = 1; | |
| _gideonChart.PlotArea.YAxis.Appearance.MajorGridLines.PenStyle = DashStyle.Solid; |
Unfortunately the above code has no effect. Am I using the wrong properties? What are the right once then?
What else might prevent the changes from showing up?
Help would be highly appreciated.
Thanks in advance and kind regards,
Gerald