Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kodak Admin control
Message
From
23/04/2004 12:49:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Kodak Admin control
Miscellaneous
Thread ID:
00897671
Message ID:
00897671
Views:
46
Hello All,

How can I know if a user clicked the Cancel button on a print dialog box?.


Here is the situation.
When I bring up the print dialog box :
Thisform.kodakImageAdminControl.showPrintDialog(lnHandle)
I am presented with the Print Dialog Box.

When I click the Cancel button on the Print Dialog box I get the following error :
Error Information:
Visual Foxpro Error: OLE IDispatch exception code 0 from ImgAdmin: Cancel
 was pressed..OLE Error: Cancel was pressedApplication Name: 
ImgAdminApplication Help File: imgocxd.hlpHelp context ID:     401450OLE 
Exception #: 32755

OLE IDispatch exception code 0 from ImgAdmin: Cancel was pressed..
Error #: 1429
The "Thisform.kodakImageAdminControl.showPrintDialog()" method does not return any value.

How can I know when the user click the Cancel button????.

Here is my code for the Print Button on my form:
LOCAL nPrintValueReturn
*-- get application handle
DECLARE INTEGER FindWindow	IN Win32API ;
INTEGER nClass, STRING cName

lcCaption = _screen.Caption
lnHandle= FindWindow( 0, lcCaption)

thisform.kodakImageAdminControl.image = lcTifFile
nPrintValueReturn = thisform.kodakImageAdminControl.showPrintDialog(lnHandle)
Thanks,
Sergio
Next
Reply
Map
View

Click here to load this message in the networking platform