Telerik Forums
Reporting Forum
6 answers
1.2K+ views
Hi,

We are using the Telerik Reporting to generate reports within our web application. Details are below. We are currently running the application on Windows Server 2008 R2 (IIS 7.5) and are looking to move the application to Windows Server 2012 (IIS 8). When we generate the report, we get the below.NET exception in the Report window. (I also attached the error in a JPG)

We verified that this is not a SQL exception from our database procedure call. We are even able to Export the report to a PDF and the PDF looks correct (as we would expect the report to display on screen). We have other Telerik controls within the application (mainly the Scheduler control) and that is working in Server 2012/IIS 8 without an issue.

Is this a known issue when using IIS 8? I checked the forums and have not seen another report of the same issue. Let me know if you need any further information. Thanks for your time and help.

Application:
- .NET 2.0
- Telerik.Reporting.dll version : 3.2.9.1211

Arithmetic operation resulted in an overflow.

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.OverflowException: Arithmetic operation resulted in an overflow.

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:

[OverflowException: Arithmetic operation resulted in an overflow.]
   Telerik.Reporting.HtmlRendering.HtmlItemRender.CreateIndexedBitmapUnmanaged(Bitmap colorBitmap) +1399
   Telerik.Reporting.HtmlRendering.HtmlItemRender.CreateIndexedBitmap(Bitmap srcBitmap, ImageFormat& imageFormat, String& extension, String& mimeType) +172
   Telerik.Reporting.HtmlRendering.HtmlItemRender.SaveImageInStream(HtmlRenderingContext context, Bitmap srcBitmap, String& name, String& extension) +61
   Telerik.Reporting.HtmlRendering.ShapeItemRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context) +713
   Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +74
   Telerik.Reporting.HtmlRendering.Matrix.RenderInternal(HtmlRenderingContext context) +2198
   Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +74
   Telerik.Reporting.HtmlRendering.HtmlPage.RenderReportSections(HtmlWriter bodyWriter) +1137
   Telerik.Reporting.HtmlRendering.HtmlPage.RenderBody(HtmlWriter bodyWriter) +326
   Telerik.Reporting.HtmlRendering.HtmlPage.Render(HtmlTextWriter primaryWriter, HtmlRenderingContext renderingContext) +168
   Telerik.Reporting.HtmlRendering.HtmlReport.Render(HtmlTextWriter writer, Int32 startPage, Int32 endPage) +451
   Telerik.Reporting.HtmlRendering.HtmlRenderingExtension.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +214
   Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +711
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +630
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\ServerReport.cs:119
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\ReportPageOperation.cs:21
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) in c:\Projects\Reporting\FromSC_scrum\@ReportingBuild\Reporting_Build\Net20\Telerik.ReportViewer.WebForms\HttpHandler.cs:73
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
Stef
Telerik team
 answered on 18 Nov 2014
1 answer
329 views
Can there be an option to set the default page number for the HTML5 Report Viewer? (Related to my cover page question) I can get around having the cover page always been part of the report if in the Report Viewer, it shows page 2 by default (instead of Page 1).

For now, I've changed the telerikReportViewer javascript file, but it would be good if this is possible through the API or an option etc

Current Code (Line 1298 of telerikReportviewer-8.1.14.804.js):

if (!navigateToPageOnDocReady) navigateToPageOnDocReady = 1;

Changed to:

if (!navigateToPageOnDocReady) navigateToPageOnDocReady = 2;

Since all reports i'm viewing have a cover page, I can make this change...otherwise include the original JS, or set it to a variable/function/resolver etc.

I've tried using the command goToPage (http://www.telerik.com/help/reporting/html5-report-viewer-reportviewer-properties-commands.html) but it wasn't working, probably because the page wasn't ready loaded yet?

Any help, much appreciated!
Stef
Telerik team
 answered on 17 Nov 2014
3 answers
283 views
I add a reportbook that contains two reports to the report viewer.

when I view them the document map expands the root node by default. is there away to have the default state be collapsed for the root node?
Stef
Telerik team
 answered on 17 Nov 2014
1 answer
122 views
Hi 

I came across this KB article.
http://www.telerik.com/support/kb/reporting/details/font-is-missing-in-report-designers

Is there any update? Can we use OTF fonts or still we need to convert them into True type and use them.

Thanks in advance
Stef
Telerik team
 answered on 17 Nov 2014
2 answers
272 views
Hi,

Just downloaded you report designer and it looks promising. I have done a couple of reports where i connect to SQL data sources and that is all fine.

Thing is, that i want to consume our .NET web service, as it has all the data i need when designing my reports. Do you have any good examples of doing that ?
Stef
Telerik team
 answered on 17 Nov 2014
1 answer
194 views
I have SSRS RDL files with me. And I want to export those reports in PPT using PowerPoint Rendering Extension.
Please guide me for this.
Stef
Telerik team
 answered on 17 Nov 2014
1 answer
131 views
Hello
One of my requirement is add custom header to each request, however, even if I set:
$.ajax({
            type: "POST",
            beforeSend: function (request) {
                request.setRequestHeader("Some-Code", myCode);
            }
        });

It is not send during accessing report web api.

Kind Regards
Marcin


Marcin
Top achievements
Rank 1
Veteran
 answered on 17 Nov 2014
3 answers
82 views
Will we finally be able to "preview" coded "NeedsDataSource" reports inside of visual studio with the new Roslyn compiler\VS2014?  Seems like it was made for things such as this...
Stef
Telerik team
 answered on 14 Nov 2014
1 answer
619 views
My application needs to support both A4 (210mm * 297mm)  and Letter (215.9mm * 279.4mm).

One way to deal with this issue is to draw in an area of 210 * 279.4, so that it fits in both A4 and Letter.

Using Telerik I set my report to this size and designed the report. When I tried to print it my printer did not print complaining that the size was not correct. I needed to set the report size to A4 for the printer to print.

Is this a potential problem? If yes, how can it be resolved?

Also, can you suggest any other way to be able to design in both A4 and Letter (short of designing two separate reports)

Thanks,
John


Hinata
Top achievements
Rank 1
 answered on 13 Nov 2014
1 answer
175 views
Hi,

I have a web app and a class library. My wep app include my class library.
On the page load of my default.aspx web form, i set the datasource of my report.

Here is the code ( this.FolhaCargaCollection contains a List with 72 items):

protected void Page_Load(object sender, EventArgs e)
{
    ClassLibrary1.Report.FolhaCarga report = new ClassLibrary1.Report.FolhaCarga();
    report.DataSource = this.FolhaCargaCollection;
 
    Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
    reportSource.ReportDocument = report;
 
    this.ReportViewer1.ReportSource = reportSource;
    ReportViewer1.RefreshReport();
}

Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i have set DataSource property to my new ObjectDataSource.

Then i hit F5 key and all work. I got all my 72 items listed.

Then i have done this:
Create new a report inside my class library (ClassLibrary1)
Add a ObjectDataSource, then select the collection and select "No data source member". Then finish.
On my report, i add a new table.
In Table wizard, i select the ObjectDataSource, then selected all properties to the table. Then finish.

I changed my page load to load the right report, then hit F5 key. What happens next is that i saw the headers of my table repeated 72 times, without data.

Is there any way that this can work, using the variable "this.FolhaCargaCollection" as the source of my report?

Thanks in advance.
Nasko
Telerik team
 answered on 13 Nov 2014
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?