cDRPreview Class¶
This class is the default class used to create objects when the preview style (pePreviewStyle) is set to C_DRPREVIEW_VIEW in a cDRReport object. This preview method is the default – and preferred – way when a report view object for a Windows application is created (with or without using the integration wizard).
The class reference is stored in the phcPreviewer property of the cDRReport object if the pePreviewStyle property is set to C_DRPREVIEW_TOOLPANEL. The setting occurs in the SetDefaultPreviewerClass method.
An object of this class uses an icon that is loaded from a filename DR.ico. The file is defined in the library and should be either copied to the workspace (bitmaps folder) or linked as an embedded icon via the project properties, icon tab-page.
The size of an object of this class is automatically set to the size of the MDI container minus some space to keep the view shown as not maximized.
The property pbAllowMaximizeView of the cDRReport object is used to set the Maximize_Icon property.
Child objects¶
An object of this class defines a preview window object and a command bar object.
The toolbar buttons of the command bar object are all instantiated directly or indirectly from the cDRMenuItem class.
The preview window is an instance of the cDRPreviewWindow class.