Click here to Skip to main content
13,628,175 members
Rate this:
 
Please Sign up or sign in to vote.
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 13-Feb-12 20:12pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Change the web config file which can take the report viewer instance of 2010.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180712.1 | Last Updated 9 May 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100