Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

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

Independent Software Vendors: 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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

782 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