C# Crystal报表文件夹路径
此代码找不到Crystal报表的路径。 我仍然没有找到文件。 有什么问题吗C# Crystal报表文件夹路径,c#,winforms,crystal-reports,C#,Winforms,Crystal Reports,此代码找不到Crystal报表的路径。 我仍然没有找到文件。 有什么问题吗 ReportDocument cryRpt = new ReportDocument(); string reportPath = Path.GetDirectoryName(Application.ExecutablePath); string reportFullPath = Path.Combine(reportPath, "CrystalReport1.rpt");
ReportDocument cryRpt = new ReportDocument();
string reportPath = Path.GetDirectoryName(Application.ExecutablePath);
string reportFullPath = Path.Combine(reportPath, "CrystalReport1.rpt");
if (!File.Exists(reportFullPath))
{
MessageBox.Show("File not found!");
return;
}
cryRpt.Load(reportFullPath);
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
ReportPath=C:\Users\Fabio\Desktop\Area\u Progetto\backup\Area\u Progetto\u 10\u 04\u 2014\Area\u Progetto至\u 27\u 02\u 2014\Area\u Progetto\u DATA\u MAGAZINE\DATA\u MAGAZINE\bin\Debug reportFullPath=C:\Users\Fabio\Desktop\Area\u Progetto\backup\Area\u Progetto\u 10\u 04\u 2014\Area\u Proget至2014年2月27日\u地区\u项目至\u数据\u杂志\DATA\u杂志\DATA\u杂志\bin\Debug\CrystalReport1.rpt报告文件可能未复制到输出目录;更改其生成属性,以便执行以下操作:
是C吗C:\Users\Fabio\Desktop\Area_Progetto\backup\Area_Progetto_10_04_2014\Area_Progetto\至2014年2月27日\u地区\u项目至\u数据\u杂志\DATA\u杂志\DATA\u杂志\bin\Debug\?我想不是。