Click here to Skip to main content
15,888,208 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

I have make RDLC Report In my application. Report datasource is binding in application.
C#
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.Visible = true;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource(DataSet1_GetBillDetailFromBillId, ObjectDataSource1.ID));
ReportViewer1.LocalReport.ReportPath = Server.MapPath(Report.rdlc);
ReportViewer1.ServerReport.Refresh();

But when I render the report in PDF:
C#
renderedBytes = ReportViewer1.LocalReport.Render(reportType, deviceInfo, out mimeType, out encoding, out fileNameExtension, out streams, out warnings); 

then its Give Exeption "An error occurred during local report processing.".

Any one have idea why it comes?
Please, reply me ASAP.
Posted
Updated 11-Apr-11 4:10am
v2
Comments
Sandeep Mewara 11-Apr-11 10:11am    
Please use PRE tags to format code part.

1 solution

 
Share this answer
 
Comments
chauhanvatsal 24-Jun-14 1:51am    
not useful
chauhanvatsal 24-Jun-14 1:52am    
Give proper solutions if possible,please
Member 9676463 18-May-15 10:58am    
I agree - just not useful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900