Question:

How do I export a crystal 8.5 report to excel in a vb 6 app?

by  |  earlier

0 LIKES UnLike

I have an app written in VB 6 and crystal 8.5 reports. I have enabled the Export button on the CRViewer but the only export options it gives me is pdf. I want to be able to export in Excel as well. Any ideas?

 Tags:

   Report

2 ANSWERS


  1. http://answers.128bit.at

    you can get much information in this website, If you will check anyone blue link in website.


  2. With mobjCrystalReport

        with .ExportOptions

            .UseReportDateFormat = True

            .UseReportNumberFormat = True

            .FormatType = crEFTCommaSeparatedValues

            .DestinationType = crEDTDiskFile

            .DiskFileName = strFileName

        end with

        .Export False                

    End With

    But I think you need to use the Crystal Reports 8.5 Excel export DLL (crxf_xls.dll) instead of crviewer.

    I haven't tested the solution but I do know that you do need to set the FormatType and DestinationType as demonstrated above.  But I'm not sure crViewer is what you need to use.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.