Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kodak Admin control
Message
De
23/04/2004 12:49:14
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Kodak Admin control
Divers
Thread ID:
00897671
Message ID:
00897671
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform