You can detect when the
Crystal Reports editor is opened
and closed, and add code to do initialization tasks. For example, you could add
listeners to the open event, or populate the report with data, or add code to
the close event to do clean-up.
Detecting open and close events involves the
following steps:
Creating
a plug-in project that includes the
com.businessobjects.crystalreports.designer.sdk
library as a dependency.
Adding
the
com.businessobjects.crystalreports.designer.sdk.editorOpened
extension point to the plug-in project.
Connecting the
editorOpened
extension point to a class that implements the
IEditorOpenedListener interface
and the
IEditorClosedListener
interface.
Classes used to detect editor open and
close events
com.businessobjects.crystalreports.designer.sdk.ICrystalReportsEditorRepresents the Crystal Reports editor.
com.businessobjects.crystalreports.designer.sdk.IEditorOpenedListenerListens for when the report editor is opened.
com.businessobjects.crystalreports.designer.sdk.IEditorClosedListenerListens for when the report editor is closed.
Extension points used to detect editor open
and close events
com.businessobjects.crystalreports.designer.sdk.editorOpened