转换自VS2008后,Rdlc报告在VS2010中无效 [英] Rdlc report not working in VS2010 after converting from VS2008

查看:69
本文介绍了转换自VS2008后,Rdlc报告在VS2010中无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的WPF(C#)项目从VS2008转换为VS2010后,一切正常,没有rdlc报告。



运行报告时出现以下错误



Microsoft.Reporting.WinForms.LocalProcessingException被捕获

消息=本地报告处理期间发生错误。

来源= 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)

在Microsoft.Reporting.WinForms.LocalReport.Render(String format,String deviceInfo,

CreateStreamCallback createStream,Warning []& warnings)

at RH_Base.PrintPa ges.Export(LocalReport报告)

在RH_Base.PrintPages.Start(LocalReport报告)

在RH_PTS.RH_Patient.Print_OP_No(字符串OP_No)在D:\ Rainhopes

Projects\Yarrow_2010\RH_PTS\Hospital\Widget\RH_Patient.xaml.cs:3735行

InnerException:System.NullReferenceException

Message =对象引用未设置为对象的实例。

Source = Microsoft.ReportViewer.WinForms

StackTrace:

在Microsoft。 Reporting.WinForms.LocalReport.ValidateRenderingFormat(String format)

InnerException:

收到这些错误后,我在rdlc文件中做了一些更改,在记事本中打开它



我刚刚更换



< report>

xmlns =http:// schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition

xmlns:rd =http://schemas.microsoft.com/SQLServer/reporting/reportdesigner>





&l t;报告>

xmlns =http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition

xmlns:rd =http: //schemas.microsoft.com/SQLServer/reporting/reportdesigner\">



仍然是同样的错误请帮我

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

推荐答案

更改可以获取2010年报表查看器实例的Web配置文件。
Change the web config file which can take the report viewer instance of 2010.


这篇关于转换自VS2008后,Rdlc报告在VS2010中无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆