当前位置: 代码迷 >> ASP.NET >> 关于水晶报表导出的有关问题!
  详细解决方案

关于水晶报表导出的有关问题!

热度:7309   发布时间:2013-02-25 00:00:00.0
关于水晶报表导出的问题!!急!
代码如下:报错为Invalid   report   file   path.
private   void   btnExport_Click(object   sender,   System.EventArgs   e)
{


ReportDocument   myReport   =   new   ReportDocument();
CrystalDecisions.Shared.DiskFileDestinationOptions   DiskOpts   =   new   CrystalDecisions.Shared.DiskFileDestinationOptions();
myReport.ExportOptions.ExportDestinationType   =   CrystalDecisions.Shared.ExportDestinationType.DiskFile;
myReport.ExportOptions.ExportFormatType   =   CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
DiskOpts.DiskFileName   =   "c:\\Output.pdf ";
myReport.ExportOptions.DestinationOptions   =   DiskOpts;
myReport.Export();
}

------解决方案--------------------------------------------------------
UP
  相关解决方案