C
Casey
Not quite sure if this is the right discussion group or not but...
In C#, I've written an app that runs a bunch of crystal reports, and then
exports them into a word doc and excel doc. It works great except it exports
them in Office 2003, and there really doesn't seem to be an option to export
to Office 2007. Here's the magic code:
CrystalDecisions.Shared.DiskFileDestinationOptions dfdo = new
CrystalDecisions.Shared.DiskFileDestinationOptions();
dfdo.DiskFileName = newExcelDocPath + ".xls";
excelExport.ExportDestinationOptions = dfdo;
excelExport.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.Excel;
excelExport.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.DiskFile;
d.Export(excelExport); //this command actually does the exporting.
Also if it helps, here is my CrystalDecisions.Shared dll is Version
12.0.2000.0
Thanks for any help you can provide.
In C#, I've written an app that runs a bunch of crystal reports, and then
exports them into a word doc and excel doc. It works great except it exports
them in Office 2003, and there really doesn't seem to be an option to export
to Office 2007. Here's the magic code:
CrystalDecisions.Shared.DiskFileDestinationOptions dfdo = new
CrystalDecisions.Shared.DiskFileDestinationOptions();
dfdo.DiskFileName = newExcelDocPath + ".xls";
excelExport.ExportDestinationOptions = dfdo;
excelExport.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.Excel;
excelExport.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.DiskFile;
d.Export(excelExport); //this command actually does the exporting.
Also if it helps, here is my CrystalDecisions.Shared dll is Version
12.0.2000.0
Thanks for any help you can provide.