Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-11-21
1
Medium Priority
?
386 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 20 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

671 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