[10级求助]水晶报表导出rtf报vshost32.exe错误
突然来的项目,突然来的问题。需要把水晶报表的格式内容导出为rtf文件。但输出时竟然提示vshost32.exe出错。如果把格式改为excel、PDF竟然又可以,无语。 代码如下:导出
string path = "C:\\test.rpt";
ReportDocument rptdoc = new ReportDocument();
rptdoc.Load(path);
rptdoc.SetDataSource(ds);
rptdoc.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.RichText, "C:\\12d.rtf");
请高手解答。