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