PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
At 11:55 AM +1000 7/8/03, Alun Greenhouse wrote:
I'm trying to render a PDF on a VB form using the technique advanced by Adobe, ie NOT using the PDF.ocx that has served me so well over the years but using the OpenInWindowEx method of the AcroExch.AVDoc object.
Sounds good...
I am attempting to encapsulate this code in an ActiveX control.
Interesting...
I am but I'm finding the IAC documentation a bit light on for details.
That's true...
It's all meant to happen with the following line of code:
ret = AcroExchAVDoc.OpenInWindowEx(stFilePath, hwnd, AV_DOC_VIEW, True, 0, PDUseNone, AVZoomFitPage, 0, 0, 0)
hwnd is a pointer to a VB.UserControl.
I don't believe that a VB.UserControl is a direct equivalent to a HWND - you need to get the actual Windows low level HWND for the control and pass that.
Leonard -- --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax)
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
