Sammybobo
The Adobe SDK is available as a free download at
Adobe SDK Download.
Apart from the problem with the 'clash' with the Adobe Reader, the ActiveX control version 6.0.n does seem more stable than previous versions and although testing has been limited, have yet to get a C05 error.
I appreciate you now have a preferred solution with the TypeLib, so this thread may now become academic for you but may be helpful to others.
I'm curious as to why those methods don't work.
The obvious reason is that the parameters passed are incorrect.
If you were to modify a postscript file by the use of the pdfmark operator, ( a PostScript extension only implemented in Acrobat Distiller or equivalent as opposed to PostScript printers), you can control the layout mode by using the parameters:-
UseNone - Document displayed without bookmarks and thumbnails
UseThumbs - Document displayed with thumbnails
UseOutlines - Document displayed with bookmarks
Fullscreen - Document displayed in full-screen mode
Using the TypeLib alternative, you have the equivalent constants:-
#DEFINE PDUseNone 0
#DEFINE PDUseThumbs 2
#DEFINE PDUseBookmarks 3
#DEFINE PDFullScreen 4
You then have a similar situation in respect of the .setPageMode() method with pdfmark operator parameters and the equivalent TypeLib constants.
So logic would say the string parameters for the ActiveX control would be derivatives of either pdfmark operator parameters or the equivalent TypeLib constants.
What those methods working would give is full control of the ActiveX control by VFP, hence the curiousity.
FAQ184-2483 - answering getting answered.
Chris
PDFcommandertm.com
PDFcommandertm.co.uk