Click here to Skip to main content
Licence CPOL
First Posted 4 Oct 2005
Views 88,247
Bookmarked 28 times

Integrate Crystal Reports Runtime Designer & Viewer With MFC

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)

About the Author

Tarek Ahmed Abdel Rahmane

Software Developer
Tatweer For Information Technology
Egypt Egypt

Member

* Under Construct *

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionCrystal report runtime Pinmembertanphat1:44 26 Jan '12  
QuestionHow to build with visual studio 2010 Pinmemberhat047:10 12 Dec '10  
AnswerRe: How to build with visual studio 2010 PinmemberTarek Ahmed Abdel Rahmane8:37 12 Dec '10  
QuestionCrystal Report PinmemberMember 8320864:30 16 Feb '10  
QuestionHow to use designer in c# project. Pinmemberneer0:34 12 Dec '09  
QuestionApp crashes after opening crystal report dialog a second time PinmemberVachaun2210:18 6 Oct '09  
Generalvinod needs Your help [modified] PinmemberMember 391854123:26 30 Dec '08  
GeneralCrystal Report 10.0 Craxdrt.dll Pinmembersankarnara2006@yahoo.co.in2:06 21 Aug '08  
GeneralAgain PinmemberElaaber10:42 5 Jan '07  
GeneralRunReportWizard (Please Help) Pinmemberxdeveloper_del2:09 15 Mar '06  
GeneralRe: RunReportWizard (Please Help) Pinmemberrameshbabu_peddapalli10:18 20 Jun '07  
GeneralPlz... help... CDO & TTX PinmemberArdine19:11 13 Nov '05  
Generalcrystal report with vc++ Pinmemberlallaba20:57 12 Nov '05  
GeneralRe: crystal report with vc++ PinmemberTarek Ahmed Abdel Rahmane18:30 13 Nov '05  
QuestionRe: crystal report with vc++ PinmemberElaaber0:48 19 Dec '06  
Generali need help Pinmemberlallaba23:55 7 Nov '05  
GeneralRe: i need help PinmemberTarek Ahmed Abdel Rahmane12:23 8 Nov '05  
GeneralRe: i need help Pinmemberstrassebahn112:49 22 Aug '06  
GeneralRe: i need help PinmemberTarek Ahmed Abdel Rahmane0:31 30 Aug '06  
QuestionHow Could I run it on another PC? PinmemberHatemElbehairy11:04 27 Oct '05  
AnswerRe: How Could I run it on another PC? PinmemberTarek Ahmed Abdel Rahmane12:52 8 Nov '05  
GeneralI can use Crystal Report as i use it in VB Pinmembervikas amin3:13 5 Oct '05  
GeneralRe: I can use Crystal Report as i use it in VB PinmemberTarek Ahmed Abdel Rahmane8:06 6 Oct '05  
GeneralRe: I can use Crystal Report as i use it in VB PinmemberMember 372504920:42 17 Jun '08  

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.

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