Closing VPE

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Closing VPE

Postby IDEAL Software Support » Tue Nov 23, 2004 5:17 pm

Hi,

Using VPE Standard Evaluation 3.60 for Delphi6.

I have a test program that can run a report multiple
times. I would like to use a general procedure before
starting a new report, and when closing the program,
to close VPE if there is an open document.

Using the TVPEngine properties, I can not find a way
to do this. IE. determine if CloseDoc needs to be
called.

I have tried :

A) if not(vpe1.DispatchAllMessages) then begin // vpe still active

B) if (vpe1.DocHandle <> 0) then begin // vpe still active

These raise exception "The VPE document is not open. You
need to call OpenDoc prior to this operation"

Is there a property of TVPEngine that I can always test
to determine if CloseDoc needs to be called?

Regards,
Brian
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 5:18 pm

See the property IsOpen.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 39 guests