exporting a crystal reports programatically

Posted on 2007-10-03
Last Modified: 2013-12-26
I want to programatically export a crystal report (version 7) into a rich text format to a file using the crystal report control. The logic on a high level should be as follows:

assign all contro properties
cr control.action=1
cr.export to a file
close the report

Can some one tell me how to do that using VB6 and the crystal report control, and using a rich text format.

Question by:fmichail
    LVL 100

    Accepted Solution

    Check this link
    OCX sample application in VB - Exporting

    If you have any plans to upgrade from CR7 to later versions of Crystal, the OCX method is no longer supported.  It was replaced in CR8 with the RDC.  You can use this paper to help in migrating from the OCX to the RDC


    Author Comment

    Dear mlmcc
    Thank you very much

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    779 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

    16 Experts available now in Live!

    Get 1:1 Help Now