我有一個用C#編寫的Windows應用程序,並試圖使用水晶報表查看器顯示水晶報表。我的報告的名稱是「receiptReport」,我使用下面的行顯示在瀏覽器報告:以下錯誤無法在清單資源中找到報告 - Crystal Report/C#
receiptReport rpt = new receiptReport();
crystalReportViewer.ReportSource = rpt;
我收到:Unable to find the report in the manifest resources. Please build the project, and try again.
我已經通過設置建立報告文件的行動「嘗試ReceReport.rpt'到Embedded Resource,但現在仍然運氣..使用VS2010 ..我使用VS ..
沒關係,我已經找到了答案,在我的receiptReport.cs文件中,在FullResourceName屬性下,完整的資源名稱是錯誤的(Namespace + ClassName + .rpt),我在修復它後工作。 – Waqas 2010-12-10 13:25:12
可以請你告訴我使用哪個類名並給予例如 – Milind 2013-04-23 06:18:43