Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
After converting my WPF(C#) project from VS2008 to VS2010 everything is working fine without rdlc report.

I got the following error while running my report

Microsoft.Reporting.WinForms.LocalProcessingException was caught
Message=An error occurred during local report processing.
Source=Microsoft.ReportViewer.WinForms
StackTrace:
at Microsoft.Reporting.WinForms.LocalReport.ValidateRenderingFormat(String format)
at Microsoft.Reporting.WinForms.LocalReport.InternalRender(String format, Boolean
allowInternalRenderers, String deviceInfo, CreateAndRegisterStream
createStreamCallback, Warning[]& warnings)
at Microsoft.Reporting.WinForms.LocalReport.Render(String format, String deviceInfo,
CreateStreamCallback createStream, Warning[]& warnings)
at RH_Base.PrintPages.Export(LocalReport report)
at RH_Base.PrintPages.Start(LocalReport report)
at RH_PTS.RH_Patient.Print_OP_No(String OP_No) in D:\Rainhopes
Projects\Yarrow_2010\RH_PTS\Hospital\Widget\RH_Patient.xaml.cs:line 3735
InnerException: System.NullReferenceException
Message=Object reference not set to an instance of an object.
Source=Microsoft.ReportViewer.WinForms
StackTrace:
at Microsoft.Reporting.WinForms.LocalReport.ValidateRenderingFormat(String format)
InnerException:
After getting these error i made some changes in my rdlc file by open it in notepad

I just replaced

<report>
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
To

<report>
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

Still the same error pls help me
Posted
Updated 9-May-17 2:21am
v2
Comments
Mohamed Ahmed Abdullah 23-Mar-12 15:32pm    
did you add the following 3 references?
1- System.Windows.Forms
2- Microsoft.ReportViewer.Common
3- Microsoft.reportViewer.WinForms

1 solution

Change the web config file which can take the report viewer instance of 2010.
 
Share this answer
 

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