Click here to Skip to main content
15,746,652 members
Articles / Desktop Programming / MFC
Article
Posted 4 Oct 2005

Stats

153.3K views
4.8K downloads
33 bookmarked

Integrate Crystal Reports Runtime Designer & Viewer With MFC

Rate me:
Please Sign up or sign in to vote.
3.00/5 (7 votes)
4 Oct 2005CPOL
Integrate Crystal Reports Runtime Designer & Viewer With MFC

Sample Image - IntegrateCrystalReports.gif

Introduction

I try to integrate crystal report runtime designer, after time of searching i have a small test app.
a dialog based application, that allow you yo view or create new report.

CReportCRDesigner

the res dialog have to control the back layer is (IDC_ACTIVEXREPORTVIEWER1) and the front one is (IDC_EMBEDDABLECRYSTALREPORTSDESIGNERCTRL1)

you can insert the crystal report component to your project from (Project->Add To Project-> Components and control) then select ( Crystal ActiveX Viewer 10.0 - Embeddable Crystal Reports Designer Control 10.0)

you must have 2 member variable:
*-  IApplicationPtr  m_Application; to create a crystal application
*-  IReportPtr  m_Report; to create a crystal report file

i use pBtPrivew and pBtDesigner to switch between viewer and runtime designer

don't  forget to do import the runtime dll
#import "<Drive>\\Program Files\\Common Files\\Crystal Decisions\\2.5\\bin\\craxdrt.dll" no_namespace

 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Tatweer For Information Technology
Egypt Egypt
* Under Construct *

Comments and Discussions

 
QuestionConverting to dll /using in vb.net Pin
afreen_201017-Jun-13 1:46
afreen_201017-Jun-13 1:46 
QuestionCrystal report runtime Pin
tanphat26-Jan-12 1:44
tanphat26-Jan-12 1:44 
QuestionHow to build with visual studio 2010 Pin
hat0412-Dec-10 7:10
professionalhat0412-Dec-10 7:10 
AnswerRe: How to build with visual studio 2010 Pin
Tarek Ahmed Abdel Rahmane12-Dec-10 8:37
Tarek Ahmed Abdel Rahmane12-Dec-10 8:37 
QuestionCrystal Report Pin
Member 83208616-Feb-10 4:30
Member 83208616-Feb-10 4:30 
QuestionHow to use designer in c# project. Pin
neer12-Dec-09 0:34
neer12-Dec-09 0:34 
QuestionApp crashes after opening crystal report dialog a second time Pin
Vachaun226-Oct-09 10:18
Vachaun226-Oct-09 10:18 
Generalvinod needs Your help [modified] Pin
Member 391854130-Dec-08 23:26
Member 391854130-Dec-08 23:26 
GeneralCrystal Report 10.0 Craxdrt.dll Pin
sankarnara2006@yahoo.co.in21-Aug-08 2:06
sankarnara2006@yahoo.co.in21-Aug-08 2:06 
GeneralAgain Pin
Elaaber5-Jan-07 10:42
Elaaber5-Jan-07 10:42 
GeneralRunReportWizard (Please Help) Pin
xdeveloper_del15-Mar-06 2:09
xdeveloper_del15-Mar-06 2:09 
GeneralRe: RunReportWizard (Please Help) Pin
rameshbabu_peddapalli20-Jun-07 10:18
rameshbabu_peddapalli20-Jun-07 10:18 
GeneralPlz... help... CDO &amp; TTX Pin
Ardine13-Nov-05 19:11
Ardine13-Nov-05 19:11 
Generalcrystal report with vc++ Pin
lallaba12-Nov-05 20:57
lallaba12-Nov-05 20:57 
GeneralRe: crystal report with vc++ Pin
Tarek Ahmed Abdel Rahmane13-Nov-05 18:30
Tarek Ahmed Abdel Rahmane13-Nov-05 18:30 
QuestionRe: crystal report with vc++ Pin
Elaaber19-Dec-06 0:48
Elaaber19-Dec-06 0:48 
Generali need help Pin
lallaba7-Nov-05 23:55
lallaba7-Nov-05 23:55 
GeneralRe: i need help Pin
Tarek Ahmed Abdel Rahmane8-Nov-05 12:23
Tarek Ahmed Abdel Rahmane8-Nov-05 12:23 
GeneralRe: i need help Pin
strassebahn1122-Aug-06 2:49
strassebahn1122-Aug-06 2:49 
GeneralRe: i need help Pin
Tarek Ahmed Abdel Rahmane30-Aug-06 0:31
Tarek Ahmed Abdel Rahmane30-Aug-06 0:31 
QuestionHow Could I run it on another PC? Pin
HatemElbehairy27-Oct-05 11:04
HatemElbehairy27-Oct-05 11:04 
AnswerRe: How Could I run it on another PC? Pin
Tarek Ahmed Abdel Rahmane8-Nov-05 12:52
Tarek Ahmed Abdel Rahmane8-Nov-05 12:52 
GeneralI can use Crystal Report as i use it in VB Pin
vikas amin5-Oct-05 3:13
vikas amin5-Oct-05 3:13 
GeneralRe: I can use Crystal Report as i use it in VB Pin
Tarek Ahmed Abdel Rahmane6-Oct-05 8:06
Tarek Ahmed Abdel Rahmane6-Oct-05 8:06 
GeneralRe: I can use Crystal Report as i use it in VB Pin
Member 372504917-Jun-08 20:42
Member 372504917-Jun-08 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.