Click here to Skip to main content
11,414,234 members (73,223 online)
Click here to Skip to main content

Integrate Crystal Reports Runtime Designer & Viewer With MFC

, 4 Oct 2005 CPOL
Rate this:
Please Sign up or sign in to vote.
Integrate Crystal Reports Runtime Designer & Viewer With MFC
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->

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)

Share

About the Author

Tarek Ahmed Abdel Rahmane
Software Developer Tatweer For Information Technology
Egypt Egypt
* Under Construct *

Comments and Discussions

 
QuestionConverting to dll /using in vb.net Pin
afreen_2010, 17-Jun-13 2:46
memberafreen_201017-Jun-13 2:46 
QuestionCrystal report runtime Pin
tanphat, 26-Jan-12 2:44
membertanphat26-Jan-12 2:44 
QuestionHow to build with visual studio 2010 Pin
hat04, 12-Dec-10 8:10
memberhat0412-Dec-10 8:10 
AnswerRe: How to build with visual studio 2010 Pin
Tarek Ahmed Abdel Rahmane, 12-Dec-10 9:37
memberTarek Ahmed Abdel Rahmane12-Dec-10 9:37 
Tested with VC 6 only
QuestionCrystal Report Pin
Member 832086, 16-Feb-10 5:30
memberMember 83208616-Feb-10 5:30 
QuestionHow to use designer in c# project. Pin
neer, 12-Dec-09 1:34
memberneer12-Dec-09 1:34 
QuestionApp crashes after opening crystal report dialog a second time Pin
Vachaun22, 6-Oct-09 11:18
memberVachaun226-Oct-09 11:18 
Generalvinod needs Your help [modified] Pin
Member 3918541, 31-Dec-08 0:26
memberMember 391854131-Dec-08 0:26 
GeneralCrystal Report 10.0 Craxdrt.dll Pin
sankarnara2006@yahoo.co.in, 21-Aug-08 3:06
membersankarnara2006@yahoo.co.in21-Aug-08 3:06 
GeneralAgain Pin
Elaaber, 5-Jan-07 11:42
memberElaaber5-Jan-07 11:42 
GeneralRunReportWizard (Please Help) Pin
xdeveloper_del, 15-Mar-06 3:09
memberxdeveloper_del15-Mar-06 3:09 
GeneralRe: RunReportWizard (Please Help) Pin
rameshbabu_peddapalli, 20-Jun-07 11:18
memberrameshbabu_peddapalli20-Jun-07 11:18 
GeneralPlz... help... CDO &amp; TTX Pin
Ardine, 13-Nov-05 20:11
memberArdine13-Nov-05 20:11 
Generalcrystal report with vc++ Pin
lallaba, 12-Nov-05 21:57
memberlallaba12-Nov-05 21:57 
GeneralRe: crystal report with vc++ Pin
Tarek Ahmed Abdel Rahmane, 13-Nov-05 19:30
memberTarek Ahmed Abdel Rahmane13-Nov-05 19:30 
QuestionRe: crystal report with vc++ Pin
Elaaber, 19-Dec-06 1:48
memberElaaber19-Dec-06 1:48 
Generali need help Pin
lallaba, 8-Nov-05 0:55
memberlallaba8-Nov-05 0:55 
GeneralRe: i need help Pin
Tarek Ahmed Abdel Rahmane, 8-Nov-05 13:23
memberTarek Ahmed Abdel Rahmane8-Nov-05 13:23 
GeneralRe: i need help Pin
strassebahn11, 22-Aug-06 3:49
memberstrassebahn1122-Aug-06 3:49 
GeneralRe: i need help Pin
Tarek Ahmed Abdel Rahmane, 30-Aug-06 1:31
memberTarek Ahmed Abdel Rahmane30-Aug-06 1:31 
QuestionHow Could I run it on another PC? Pin
HatemElbehairy, 27-Oct-05 12:04
memberHatemElbehairy27-Oct-05 12:04 
AnswerRe: How Could I run it on another PC? Pin
Tarek Ahmed Abdel Rahmane, 8-Nov-05 13:52
memberTarek Ahmed Abdel Rahmane8-Nov-05 13:52 
GeneralI can use Crystal Report as i use it in VB Pin
vikas amin, 5-Oct-05 4:13
membervikas amin5-Oct-05 4:13 
GeneralRe: I can use Crystal Report as i use it in VB Pin
Tarek Ahmed Abdel Rahmane, 6-Oct-05 9:06
memberTarek Ahmed Abdel Rahmane6-Oct-05 9:06 
GeneralRe: I can use Crystal Report as i use it in VB Pin
Member 3725049, 17-Jun-08 21:42
memberMember 372504917-Jun-08 21:42 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150427.2 | Last Updated 5 Oct 2005
Article Copyright 2005 by Tarek Ahmed Abdel Rahmane
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid