Solved

Exporting reports to Excel programmatically

Posted on 2004-04-14
5
1,059 Views
Last Modified: 2007-12-19
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?
0
Comment
Question by:_Greg64
  • 4
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
0
 

Author Comment

by:_Greg64
Comment Utility
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.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 100 total points
Comment Utility
According to the web site the DATA ONLY option is not supported by the RDC therefore you won't have an enumeration value for it.

Look at this
http://support.businessobjects.com/library/kbase/articles/c2012329.asp

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Glad I could help

mlmcc
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now