Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Integrate Crystal Reports Runtime Designer & Viewer With MFC

0.00/5 (No votes)
4 Oct 2005 1  
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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here