Link to home
Start Free TrialLog in
Avatar of _Greg64
_Greg64

asked on

Exporting reports to Excel programmatically

I’m doing programmatically export of reports in different formats using VC++.
In crystal 8.5 export options that are shown when exporting using report viewer match one to one CRExportFormatType enumeration.   But in crystal 9.0 there are less options then in enumeration. I’m especially interested which export option I should set in order to export in “MS Excel 97-2000” and “MS Excel 97-2000 (Data only)”.
My guess is that the first one corresponding to new enumeration value crEFTExcel97, but what about second one?
Avatar of Mike McCracken
Mike McCracken

When using CR9 have you included the CR9 runtime libraries or are you still using the CR8.5 libraries?

There is a format change in the report file so you will need to use the CR9 libraries for the CR9 reports.

mlmcc
Avatar of _Greg64

ASKER

To mlmcc:
Thanks for replay,
I do use CR9 runtime libraries, but craxdrt9.tlh still has the same enumeration. So the question is: when I call PutFormatType method which takes CRExportFormatType enumeration as parameter what value from this enumeration I should pass in order to export in mentioned above excel formats.
The Data only option is new to CR9.  I don't have CR9 so I can't try to figure it out.

I'll check the CR site to see if there is anything useful

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help

mlmcc