Solved

Crystal Report with C++?????????????????

Posted on 1998-11-21
1
370 Views
Last Modified: 2013-11-20
Hello,

   Can I use Crystal Report in conjunction with VC++5.0? If it can, please list a detail instructions of using Crystal report in VC++. Many thanks.
0
Comment
Question by:stephenkong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
pagladasu earned 10 total points
ID: 1325111
Yes, you can. I hope you are familiar with the usage of Crystal reports - i.e. know how to create a report file with it.
Assuming that the report file already exists - you go about it this way:
Create your application with Appwizard - I am assuming it is a dialog based one.
Open the dialog resource.
From the DevStudio menu select Project->Add To Project and add the activex control Crystal Report. A number of files are created by the application framework for you. Most of them are wrapper classes for the control.
The control will now be visible on the ControlBar of the resource editor. Select it and insert it to your dialog. This is visible only at design time. Set its properties - especially the one pertaining to the reportfilename. (Selecting 'ALL' in the property dialog box allows you to access all the properties - just like VB). Also from the properties you can specify the destination - Window or Printer.
After this use classwizard to associate a member variable, say m_report1 with this report control.
Now in your program code, in the handler where you want the report, you write:
m_report.SetAction(1);
That's about all.
Thanks.
pagladasu
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
has77  challenge 9 107
wait notify demo infinite loop 3 151
fix34  challenge 9 182
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 1,716
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

710 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