Exporting Crystal Report to Word/Excel 2007

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.
 
C

Casey

According to SAP (for anyone interested):

"Unfortunately there is no help. There is no option to export to Office
2007. Not even in the CR designer and as always, if the designer can not do
it, more than likely it can not be done at runtime either. CR2010 which is in
Beta at this time (RTM end of the year) exports to xlsx so support for Office
2007 must be present there, but not in any earlier versions of CR."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top