LPARAMETERS nError, cMethod, nLine if m.nError = 1429 ; then local array laError(7) if aerror(laError) > 0 ; then if "Cancel was pressed" $ laError(3) ; then thisform.plPrintCanceled = .t. endif if laError(7)=32755 ; then thisform.plPrintCanceled = .t. endif endif endifHope this helps.
>Thisform.kodakImageAdminControl.showPrintDialog(lnHandle)
>
>I am presented with the Print Dialog Box.>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 >>
>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) >>
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature