rdlc报告不会在Clinet Machine中显示如何执行此操作 [英] rdlc report don't show in Clinet Machine how to do this opretion
问题描述
先生我开发了一个生成账单的Windows应用程序..我使用Microsoft Reporting Rdlc报告为客户生成账单但是先生这是我的第一个项目那样我在生成账单时遇到问题.. Rdlc报告绑定数据库和显示在我的机器ussing物理路径,但当我做一个安装文件和instoll客户端机器报告没有显示和收到错误找不到report.rdlc这样的
我使用此代码
私人 void bindreport()
{
BusinessLayer blayer = new BusinessLayer();
DataTable dt = new DataTable();
dt = blayer.getBill(Global.CompanyId,BusinessLayer.MyBillNo);
reportViewer1.LocalReport.Refresh();
reportViewer1.LocalReport.DataSources.Clear();
ReportDataSource datasource = new ReportDataSource( dsBill ,dt);
reportViewer1.LocalReport.DataSources.Add(datasource);
string exeFolder = Path.GetDirectoryName(Application.ExecutablePath);
string reportPath = Path.Combine(exeFolder, @ ReportBill.rdlc跨度>);
reportViewer1.LocalReport.ReportPath = reportPath;
此 .reportViewer1.RefreshReport();
。 ..给我一条路径来做这个
错误信息清楚地告诉你那里不存在适当的文件。因此,请确保文件存在或将报告文件复制到路径。再试一次。
FYI 以本地模式部署RDLC文件ASP.NET应用程序 [ ^ ]
部署/发布RDLC文件 [ ^ ]
请通过
http://documentation.devexpress.com/ #Xaf / CustomDocument3235 [ ^ ]
在设置 - 应用程序文件夹中,你也应该有rdlc repoprt文件。
sir i m doveloping a windows application which is generate a bill .. i m using a Microsoft Reporting Rdlc Report to generate Bill for customer But sir this is my first project That way i m in problem to generate a bill .. Rdlc Report Bind with data base and show in my Machine ussing Physical path but When i m make a setup file and instoll to client machine report not show ing and getting error "cannot found report.rdlc" like this
I m using this Code
private void bindreport()
{
BusinessLayer blayer = new BusinessLayer();
DataTable dt = new DataTable();
dt = blayer.getBill(Global.CompanyId, BusinessLayer.MyBillNo);
reportViewer1.LocalReport.Refresh();
reportViewer1.LocalReport.DataSources.Clear();
ReportDataSource datasource = new ReportDataSource("dsBill", dt);
reportViewer1.LocalReport.DataSources.Add(datasource);
string exeFolder = Path.GetDirectoryName(Application.ExecutablePath);
string reportPath = Path.Combine(exeFolder, @"ReportBill.rdlc");
reportViewer1.LocalReport.ReportPath = reportPath;
this.reportViewer1.RefreshReport();
... give me a path to do this
Error message clearly tells you that appropriate file not exist there. So make sure the file exists or copy the report file to the path. And try again.
FYI Deploying RDLC files in local mode for ASP.NET applications[^]
Deploying/Publishing RDLC files[^]
please go through
http://documentation.devexpress.com/#Xaf/CustomDocument3235[^]
In setup - application folder you should have rdlc repoprt file also.
这篇关于rdlc报告不会在Clinet Machine中显示如何执行此操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!