Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adobe Acrobat PDF Reader control returns 0x80004005 erro
Message
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01189281
Message ID:
01189441
Views:
20
This message has been marked as the solution to the initial question of the thread.
Well I think I've got it.

In the HTML to be rendered by the IE Webbrowser control:
<html>
<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 scroll="no" style="border:1px;border-style:solid;margin:0px;">
<object id="objPdf"   
        classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"   
        height="527" width="852"> 
</object> 
</body>
</html>
From a command button on the VFP form, the Adobe Acrobat Reader functions can be called as such:
	thisform.browser1.document.parentWindow.objPDF.LoadFile("mypdf.pdf")

	thisform.browser1.document.parentWindow.objPDF.setZoom(125)
... and so on.

Adobe function reference here (page 106-119):
http://www.adobe.com/devnet/acrobat/pdfs/iac_api_reference.pdf
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform