I have attempted to install (after downloading) Telerik_Reporting_2009_3_1211_dev.msi.
I turned all options on to be installed. The installation completed successfully.
From start menu, I selected, Visual Studio 2008 Examples project.
When I attempt to view the WebDemo:
1. I see the choice of reports, I clicked on the Invoice and received:
| Server Error in '/WebDemo' Application. |
| -------------------------------------------------------------------------------- |
| Attempted to read or write protected memory. This is often an indication that other memory is corrupt. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. |
| Source Error: |
| Line 13: { |
| Line 14: Type reportType = Type.GetType(reportName); |
| Line 15: IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType); |
| Line 16: this.ReportViewer1.Report = report; |
| Line 17: this.Page.Title = "telerik Report Viewer - " + reportType.Name; |
| Source File: c:\Program Files\Telerik\Reporting Q3 2009\Examples\CSharp\WebDemo\ReportViewer.aspx.cs Line: 15 |
| Stack Trace: |
| [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.] |
| System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0 |
| System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86 |
| System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 |
| System.Activator.CreateInstance(Type type, Boolean nonPublic) +67 |
| System.Activator.CreateInstance(Type type) +6 |
| ReportViewer.Page_Load(Object sender, EventArgs e) in c:\Program Files\Telerik\Reporting Q3 2009\Examples\CSharp\WebDemo\ReportViewer.aspx.cs:15 |
| System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 |
| System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 |
| System.Web.UI.Control.OnLoad(EventArgs e) +99 |
| System.Web.UI.Control.LoadRecursive() +50 |
| System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 |
2. I have attached what I see from silverlight
3. When I try the windemo I see an exception on this line
IReportDocument reportDocument = Activator.CreateInstance(t) as IReportDocument;
in this block of code
| void OnCellContentClick(object sender, DataGridViewCellEventArgs e) |
| { |
| if (0 == e.ColumnIndex && e.RowIndex >= 0) |
| { |
| DataGridViewCell cell = this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex]; |
| Type t = cell.Tag as System.Type; |
| if (null != t) |
| { |
| IReportDocument reportDocument = Activator.CreateInstance(t) as IReportDocument; |
| if (null != reportDocument) |
| { |
| MainForm frm = new MainForm(reportDocument); |
| frm.WindowState = FormWindowState.Normal; |
| frm.Show(this); |
| } |
| } |
| } |
| } |
I have attached a screen shot of the exception
I am running Windows 7. VS 2008.
I was looking to get the reports by passing parameter in Combobox to storedprocedure to get result.
Please help me with example.
Regards,
Venkat
Private Sub txtOptionID_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtOptionID.ItemDataBound
Dim txtOpt As Telerik.Reporting.Processing.TextBox = DirectCast(sender, Telerik.Reporting.Processing.TextBox)
If txtOpt.Value.ToString ="1"
txtRiders.Value = "New Item 1"
End If
End Sub
Your help is, as always, appreciated.
I am converting some Crystal Reports to telerik reporting. We use XML that is stored in a database as the datasource and already use the readxml method to load a dataset. That works fine. I am using the following code to instantiate the report viewer, I got this from the samples included with the trial download. It works and I get the report on screen. My problem is that I don't find a 'DataSource' property suggested in option 2 of a previous thread on any of the objects below in which to assign my dataset. I'm sure that I'm missing something simple, but have looked for several hours and haven't found it. Can you help?
| Dim reportName As String = Server.UrlDecode(sReportName.ToString) |
| If Not String.IsNullOrEmpty(reportName) Then |
| Dim reportType As TypeType = Type.[GetType](reportName) |
| Dim report As IReportDocument = DirectCast(Activator.CreateInstance(reportType), IReportDocument) |
| Me.ReportViewer1.Report = report |
| Me.Page.Title = "Reports - " + ReportTitle.ToString |
| End If |