日期:2014-05-18  浏览次数:20537 次

关于水晶报表导出的问题!!急!
代码如下:报错为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