Use PEGetWindowOptions to configure the preview window look and functionality. You can also determine whether the preview window has a group tree window; whether it can be drill down if there are hidden groups; and whether the close button, refresh button, and print setup button are shown, for example. This function returns the current report preview window configuration.
BOOL CRPE_API PEGetWindowOptions (
short printJob,
PEWindowOptions FAR *options );
Specifies the print job from which you want to retrieve the preview window options. If two or more preview windows are open, this function applies only to the most recently created preview window. | |
Specifies a pointer to PEWindowOptions, which will contain the retrieved information. |
When hasGroupTree is True, it does not mean there will be a group tree in the preview window. The hasGroupTree option and the report option (Create Group Tree in Crystal Reports) together determine the group tree visibility in the preview window. Both options must be True for the group tree to be shown.
Declare Function PEGetWindowOptions Lib "crpe32.dll" (
ByVal printJob As Integer, Options As PEWindowOptions ) As Integer
function PEGetWindowOptions (
printJob: Word;
var options: PEWindowOptions
):Bool stdcall;
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |