473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VS 2008 RDLC - LocalReport Rendering Issue

Hi,

Am using VS 2008 and in one of ASP.Net web application am using RDLC report to generate PDF and showing the PDF in the browser window itself. It was working fine still 10 days before. Suddenly it stopped working giving the below error.

Microsoft.Reporting.WebForms.LocalProcessingExcept ion: An error occurred during local report processing. ---> Microsoft.ReportingServices.ReportProcessing.Proce ssingAbortedException: An error has occurred during report processing. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. --- End of inner exception stack trace --- at Microsoft.Reporting.WebForms.LocalReport.InternalR ender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings) at Microsoft.Reporting.WebForms.LocalReport.InternalR ender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings) at Microsoft.Reporting.WebForms.LocalReport.Render(St ring format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)


Below is the code used to generate the PDF.
Expand|Select|Wrap|Line Numbers
  1. string mimeType;
  2. string encoding;
  3. string fileNameExtension;
  4. Warning[] warnings;
  5. string[] streams;
  6.  
  7. ReportParameter myParam = new ReportParameter("Parameter1", "true");
  8. localReport.SetParameters(new ReportParameter[] { myParam });
  9.  
  10. byte[] bytesPDF = localReport.Render("PDF", null, out mimeType, out encoding, out fileNameExtension, out streams, out warnings);
  11.  
In the last line am getting the above error where the localreport is rendered.

Thanks.
Jun 29 '12 #1
0 2030

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Bill L | last post by:
I have some pages that display fine (or at least as I intend them) on most everything except Firebird (including 0.6.1). Is anyone aware of CSS issues specific to Firebird? Example page:...
4
by: Nacho Nachev | last post by:
Hello, AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output HTML that is compliant with the client browser or at least stick to HTML 4 specification or IE. This seems...
2
by: John Gara | last post by:
Hello all I have two checkboxes, but I want the second checkbox to be disabled if the first isn't checked. I created a simple function in javascript on the onchange. function changeSubOption()...
6
by: bucks | last post by:
Hey all, Im putting together this site for a family friend, he designed it in photoshop and im developing it for the web. Everything looks fine in IE 7 but when i go to view it in Mozilla the...
2
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi, I'm running into a scaling issue. I'm having a simple form. I have some control in that form (2 group boxes, one dock to the left , the other set to fill, with some misc. controls in them)....
10
by: sednamom | last post by:
I can't seem to understand why ie7 is displaying the images on my site incomplete. This only seems to be on the home page. I am new to design and attempting standards based web design, so please be...
3
by: fperri | last post by:
Hi, I have a report that I am designing in Visual Web Developer, I have two Matrix tables on my report - in the same list - and I have positioned them in the design window so that they are right...
0
by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?= | last post by:
"Ron" wrote: Hi Ron, I'm afraid you won't get the snappy user interface you may get with native code. Event though you do all your creation in the constructor. A lot of code won't...
2
by: Pieter | last post by:
Hi, We have to make a Windows Forms application, in VS.NET 2005 or preferably 2008, with local reports (*.rdlc, not *.rdl !!), which will be shown in a Reportviewer in this application. So we...
3
by: mvijayrkumar | last post by:
Hi to all.... Guys pls help me..... I have an image issue in RLDC while hosting my project on server.The image displays or works fine with the local system.But when hosted on server,both the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.