RDLC报告以PDF不报Viewar [英] RDLC Report Take PDF Without Report Viewar

查看:98
本文介绍了RDLC报告以PDF不报Viewar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有做RDLC报告在我的应用程序.报告数据源在应用程序绑定.

 ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.Visible =  true ;
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(<跨度类= 代码关键字">新 ReportDataSource(DataSet1_GetBillDetailFromBillId,ObjectDataSource1.ID));
ReportViewer1.LocalReport.ReportPath =使用Server.Mappath(Report.rdlc);
ReportViewer1.ServerReport.Refresh(); 

但是,当我渲染PDF报告:
<预LANG = CS"> renderedBytes = ReportViewer1.LocalReport.Render(REPORTTYPE,deviceInfo,<跨度类= 代码关键字">出 mime类型,<跨度类= 代码关键字">出编码,<跨度类=代码关键字">出 fileNameExtension,<跨度类=代码关键字">出流,<跨度类=代码关键字">出警告);


然后其给予Exeption的本地报告处理过程中发生了错误.的".

任何一个有想法,为什么谈到?
请回复我尽快.

解决方案
在这里,你去....你现在有3种方式....只是解决自己.....

http://support.microsoft.com/kb/973588 [ ^ ]

ASP.NET 4.0 - 时出错本地报告处理 [ ^ ]

RDLC错误时呈现的报告() [ ^ ]

Hi,

I have make RDLC Report In my application. Report datasource is binding in application.

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:

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.

解决方案

Here you go....You have 3 ways now....just solve yourself.....

http://support.microsoft.com/kb/973588[^]

ASP.NET 4.0 – An error occurred during local report processing[^]

RDLC error when render report ()[^]


这篇关于RDLC报告以PDF不报Viewar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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