我正在爲WPF使用Visual Studio 10(.NET 4)的CrytalReports。每當我加載窗口與CrystalReportViewer,它說,WPF上的CystalReports錯誤
無法加載文件或程序集「文件:/// C:\ Program Files文件\ SAP 的BusinessObjects \用於.NET Framework 4.0中\ COMMON \水晶報表SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll' 或其某個依賴項。該系統找不到指定的文件。
我已經添加了所有的dll文件/程序集作爲項目的引用。
請建議我做什麼,我真的達到我的最後期限。提前致謝。
conn obj = new conn();
SqlConnection con = new SqlConnection(obj.get_connection());
SqlDataAdapter sda = new SqlDataAdapter("select * from fee_window where dateofdeposite='" + DateTime.Now.ToString("MM/dd/yyyy") + "'", con);
DataSet_daybook ds = new DataSet_daybook();
sda.Fill(ds, "fee_window");
ReportDocument report = new ReportDocument();
report.Load(@"..\..\Report_daybook.rpt");
report.SetDataSource(ds);
crystalReportsViewer1.ViewerCore.ReportSource = report;
添加我的代碼。
感謝它幫助。 你能幫我多一點嗎?其實我是WPF開發新手,我需要做什麼,以便在爲客戶端發佈我的項目時,所有這些引用也會發布? – 2013-03-07 07:25:50
無論您是否擁有wpf,winforms,控制檯或其他項目,Crystal Framework報告都會在Framework 4.0中發生。 – blindmeis 2013-03-07 07:35:17
錯誤消失了,但我在報告中什麼也沒有得到。我已經添加了我的代碼。請考慮。 – 2013-03-07 07:46:26