0
我正在開發Visual Studio 2010中的ASP.Net Web應用程序。我正在研究設計用於VS2010的SAP Crystal Reports中的報表。子報表導出爲excel的Crystal報表失敗
我可以將報告導出爲PDF和Word格式,但是當我嘗試以Excel格式導出報告時,Visual Studio調試停止,並且永遠不會返回響應。
我正在使用Crystal Reports for Visual Studio 2010,並且第1部分(Report Header)中的問題報告有一個簡單的子報表(只有一個標籤)。
using (TestReport report = new TestReport()) // TestReport inherits ReportClass
{
TestDataSet data = this.GetData();
report.SetDataSource(data);
return report.ExportToStream(ExportFormatType.Excel);
}
的report.ExportToStream(ExportFormatType.Excel);
失敗,調試剛剛停止。如果我刪除子報表,它工作正常,但否則失敗。