Hello.
I open an Acrobat document (PDF) from VFP 9.0. Here some code;
Everything work, the Acrobat window is shown, and the user can zoom in and out and flip thru pages, etc. When he clicks to the printer button, Acrobat shows the printing dialog, he clicks OK or CANCEL, and I received this OLE message.
Foxpro crash, and I have to close it with task manager.
Is there a way to hide the printing button (I have another routine to print the PDF), or to track this message?
Thanks in advance.
Nro
I open an Acrobat document (PDF) from VFP 9.0. Here some code;
Code:
LPARAMETERS tcPdfFile AS String
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, ;
STRING cAction, ;
STRING cFileName, ;
STRING cParams, ;
STRING cDir, ;
INTEGER nShowWin
* /h : Start Minimized
* /t : no acrobat window
lcParam = '/h /t "' + tcPdfFile + '"'
lnErrCode = ShellExecute(0, "open", "AcroRd32.exe", lcParam, "", 0)
Everything work, the Acrobat window is shown, and the user can zoom in and out and flip thru pages, etc. When he clicks to the printer button, Acrobat shows the printing dialog, he clicks OK or CANCEL, and I received this OLE message.
Code:
Error #: 1426
Message : OLE error code 0x80004005 : unspecified error.
Method : _frmAcrobatViewer._olepdf.GotFocus
Foxpro crash, and I have to close it with task manager.
Is there a way to hide the printing button (I have another routine to print the PDF), or to track this message?
Thanks in advance.
Nro