English

FAQ: Is it possible to work with Crystal Reports using ArcObjects?

Question

Is it possible to work with Crystal Reports using ArcObjects?

Answer

Even though Crystal Reports is bundled with ArcGIS, it is owned by another organization: Business Objects. Because it is not an ESRI product, ESRI does not own or provide the necessary programming objects for interacting with Crystal Reports. The necessary programming functions for Crystal Reports are outside the realm of ArcObjects.

Due to the nature of VBA, it is possible to programmatically work with Crystal Reports with VBA in ArcGIS applications, as well as other applications that support VBA. ESRI does not offer technical support for programming Crystal Reports.

The Crystal Report Wizard is part of ArcMap, which is an ESRI application.
It is possible to open the Crystal Reports Wizard in ArcMap using interfaces from the ESRI Framework Library of ArcObjects.

The following code sample opens the Crystal Reports Wizard:

Code:
Sub ExecuteCmd()
Dim pCmdItem As ICommandItem
' Use ArcID module and the Name of the command
Set pCmdItem = Application.Document.CommandBars.Find(arcid.ReportObject_CrystalReportWizard)
pCmdItem.Execute
End Sub


For help on how to open the Crystal Reports Wizard in ArcObjects, please visit the ESRI Developer Network (EDN).

Related Information