VPE.SetupPrinter() does not disable the window

regarding the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE.SetupPrinter() does not disable the window

Postby IDEAL Software Support » Thu Nov 25, 2004 5:23 pm

VPE.SetupPrinter() does not disable the window of our main application. I would have expected that it is disabled, because if the user pushes a second time onto the "Setup" button in our application, we call a second time VPE.SetupPrinter(). Because VPE is already executing the printer setup dialog, our application crashes. Why isn't the window of our main application disabled automatically?

Because VPE fires events during the setup process to inform your application about the status of the setup, the main window of your application is not disabled by VPE. Solution: disable any GUI element which could cause that VPE.SetupPrinter() is called a second time while the printer setup dialog is shown or disable your application before calling VPE.SetupPrinter() and enable it after the call returns.
IDEAL Software Support
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm

Return to VPE Frequently Asked Questions

Who is online

Users browsing this forum: No registered users and 1 guest