Telerik Forums
Reporting Forum
3 answers
142 views
I cannot find telerik report q1 2010 icon when I add new item in vs 2005 but in vs 2008 it's work
help me pls
Steve
Telerik team
 answered on 05 Sep 2012
3 answers
600 views
I have some reports embedded in my web forms application. They work fine, and the reports are produced when the parameters are entered, and they also export fine to various formats such as PDF or Excel, but when I try to export to Rich Text Format I get the following error:

Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.


Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:




[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +193
   Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
   Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
   Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +176
   Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
   Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
   Telerik.Reporting.RtfRendering.Table.SubReport..ctor(SubReport processingSubReport) +36
   Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +1244
   Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
   Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
   Telerik.Reporting.RtfRendering.Table.ReportSection..ctor(ReportSection processingSection) +89
   Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +368
   Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
   Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
   Telerik.Reporting.RtfRendering.Table.RenderingElementProxy..ctor(ProcessingElement processingElement) +41
   Telerik.Reporting.RtfRendering.Table.Group..ctor(Group processingGroup) +37
   Telerik.Reporting.RtfRendering.Table.RenderingElementFactory.CreateItem(LayoutElement processingElement) +272
   Telerik.Reporting.RtfRendering.Table.RenderingElementCollection..ctor(RenderingElementContainer owner) +217
   Telerik.Reporting.RtfRendering.Table.RenderingElementContainer..ctor(ProcessingElement processingElement) +73
   Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport) +37
   Telerik.Reporting.RtfRendering.Table.Report..ctor(Report processingReport, Hashtable deviceInfo) +42
   Telerik.Reporting.RtfRendering.Table.RtfTableReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +129
   Telerik.Reporting.RtfRendering.RtfReport.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +202
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +1407
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +103
   Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +194
   Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +207
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +316
   Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager) +74
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +241
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +308
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17626 
Steve
Telerik team
 answered on 05 Sep 2012
3 answers
157 views
Hello

We are using Telerik Reporting 2011 Q3.
 
When viewing on a computer (IE, Safari, Chrome, FF) we have some reports that display within a viewer that is set to a certain size, and will use scrollbars if needed.

When viewing the same reports on an Ipad (Safari), the viewer has lost the scrollbars and has grown big enough to accommodate the report. 

Any ideas as to how we can stop the viewer from resizing itself on the ipad?

Thanks

Cheryl
Cheryl
Top achievements
Rank 1
 answered on 05 Sep 2012
3 answers
279 views
In my asp.net webforms or my Silverlight app, I can't resolve InstanceReportSource.

I have the latest Q2 2012 and ran both solutions through the upgrade wizard.

Also, I can see my report in the asp.net webform, but not the siverlight version after my upgrade to q2 2012.  My configs and dlls are up to date.  I'm not using InstanceReportSource for my silverlight report viewer, but I don't think you're supposed with that right?  That's only for WPF and asp.net.  Not being able to see the error message in silverlight is maddening, I'm 90% away from giving up on the silverlight viewer and always popping up a web browser report.

For silverlight I'm still using 
            repViewer.Report = "MyReportsNameSpace.MyRepor1, MyReportsNameSpace";
            repViewer.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(repViewer_RenderBegin);
...

danparker276
Top achievements
Rank 2
 answered on 04 Sep 2012
1 answer
288 views
Refresh button is not working in my report.I use report viewer to display report (in asp.net mvc).When i hit the refresh button it didnot get latest data.What is problem in my code.

Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource  = getData();

 Reports.MyReport report = new  Reports.MyReoprt();
 report.DataSource = objectDataSource;


 ReportViewer1.Report = report;
 ReportViewer1.RefreshReport();

Steve
Telerik team
 answered on 04 Sep 2012
2 answers
227 views
I have a client who is happy with Telerik apart from the fact that the charts are rendered as images - this means there is no mouse hover functionality available.

Is it possible to render the charts as SVG or Canvas? If not, is it possible and/or feasible to embed Google charts into the report. I noticed that there is an HtmlTextbox control that in theory I could use.

Julian
Top achievements
Rank 1
 answered on 04 Sep 2012
1 answer
54 views
Hi..
1. I get outofmemory exception on large reports over  500+ pages.
2. When I include a Chart and have have more than around  5000+ items  (datapoints) I get a chart outofMemoryExceptions

any ideas?
Steve
Telerik team
 answered on 04 Sep 2012
1 answer
340 views
Hello,

 I am not able to properly bind a DataTable to a report viewer that is embedded within a Sharepoint 2010 WebPart. (using Telerk.Reporting.dll version 6.1.12.820). I have bound the same data to a generic asp gridview without error.

I have followed the deployment/configuration steps for getting the report viewer to work properly within shareopint -- and it is appearing (just the underlying data is not that I'm binding is not).

I have also followed the instructions on how to bind a dataTable to a report viewer with no success.

http://www.telerik.com/help/reporting/object-data-source-how-to-bind-to-data-table.html

I have copied the code directly from this link (replacing the GetData() method with my own to create a simply 3 column, 1000 row table).

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExportListUserControl.ascx.cs" Inherits="CADLibraryWebPart.ExportList.ExportListUserControl" %>

<%@ Register Assembly="Telerik.Web.UI, Version=2012.2.815.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.1.12.820, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"

Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

<div style="height: 500px;">

<telerik:ReportViewer ID="ReportViewer1" runat="server" style="border:1px solid #ccc;" width="99%" height="99%"></telerik:ReportViewer>

</div>

private DataTable createData()

{

DataSet ds = new DataSet();
ds.Tables.Add();

DataTable table = ds.Tables[0];

int columnCount = 3;

int rowCount = 1000;

//Add columns

for (int column = 0; column <= columnCount - 1; column++)

{

table.Columns.Add("Column" + (column + 1).ToString(), typeof(string));

}

//Add rows

for (int row = 0; row <= (rowCount - 1); row++)

{

string[] rowVals = (string[])Array.CreateInstance(typeof(string), columnCount);

DataRowCollection rowCollection = table.Rows;

for (int column = 0; column <= columnCount - 1; column++)

{

rowVals[column] = "value_" + (column + 1).ToString() + "_" + (row + 1).ToString();

}

table.Rows.Add(rowVals);

}

return ds.Tables[0];

}

private void BindTelerikReport()

{

// Creating and configuring the ObjectDataSource component:

var objectDataSource = new Telerik.Reporting.ObjectDataSource();

objectDataSource.DataSource = createData(); // GetData(); // GetData returns a DataSet with three tables

// Creating a new report

Telerik.Reporting.Report report = new Telerik.Reporting.Report();

// Assigning the ObjectDataSource component to the DataSource property of the report.

report.DataSource = objectDataSource;

// Use the InstanceReportSource to pass the report to the viewer for displaying

Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();

reportSource.ReportDocument = report;

// Assigning the report to the report viewer.

ReportViewer1.ReportSource = reportSource;

}

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

BindTelerikReport();

}

}

I would appreciate any help with this. Thanks you!


Steve
Telerik team
 answered on 04 Sep 2012
6 answers
398 views

Hello Telerik Team,

I am presently converting my crystal reports to telerik reports.But previously crystal reports datasource was sql stored procedures and select statements but now
I am planning to have a datasource as sharepoint list.Is there any sample on how we can do that.
I appreciate your help.

Look forward from you.

Thank you
Smith

Steve
Telerik team
 answered on 04 Sep 2012
1 answer
82 views
I am trying to upgrade to Q2 2012 but am getting some obsolete syntax errors (Warning 32 'Public Shared Widening Operator CType(report As Telerik.Reporting.Report) As Telerik.Reporting.ReportSource' is obsolete: 'The implicit Report to ReportSource conversion is obsolete. Please create InstanceReportSource instead.')
.
How do i correct this to use the create InstanceReportSource?

Me
.ProidersSubReport.ReportSource = Me.ReportFamiliesDetailProviderSub1
Steve
Telerik team
 answered on 04 Sep 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?