Skip to content

Property added to suppress the missing window handle error on preview click

What is new - 24.0

Preview click can only work when there is a window handle available.

Up to v8.2, cDRReport generated an error when the window handle was missing. In v24.0, this error can be suppressed by setting pbNoWindowHandleError to true.

Sample usage:

Object oDesktopReport is a cDRReport 
    Set psReportName to "Customer Labels.dr" 
    Set pePreviewStyle to C_DRPREVIEW_MODAL 
    Set phoPreviewContainer to oDRModalPreview 
End_Object

The above object placed before oMain in order.src gives an error when clicking in the preview. When changing this to:

Object oDesktopReport is a cDRReport 
    Set psReportName to "Customer Labels.dr" 
    Set pePreviewStyle to C_DRPREVIEW_MODAL 
    Set phoPreviewContainer to oDRModalPreview 
    Set pbNoWindowHandleError to True
End_Object

there will be no error anymore.