{oapdf_gg}
Office software is closely linked to the PDF,the PDF is also must have to control!      Set home Page  Add to Favorites  
You are here:Home > PDF Application > PDF Development
PDF Development
Using Visual C++ languages through ActiveX controls display PDF documents
Finishing by: Date:2009-04-10 13:20:26 Popularity: Tags:
Acrobat (Reader) provides an ActiveX control pdf.ocx (7.x version AcroPDF.dll), can be achieved in the user program the display of PDF documents. For older versions of software (4.x and previous versions), only ActiveX controls in accordance with the standard programming steps:

(1) to join the VC control pdf.ocx projects, and generate control type

(2) the control placed in the dialog box, or type of call control functions of the members of Create to create the control object

(3) attributes or call methods of control open PDF file

Since this is not to discuss the content of this article, please refer to "Visual C + + technology insider" in "the use of ActiveX controls," a chapter will not repeat them here.

However, the new version of software (5.x/6.x/7.x), this method is no longer applicable: the new control is not a complete sense of the ActiveX control, it lacked the type of control necessary to generate the type library information, unable to control join the VC project.

In this case, the need to call function CWnd:: CreateControl to create a control object, and then control access to the IDispatch interface pointer, the adoption of the guidelines visit the properties and methods of control.

IDispatch pointer directly call the properties and methods of control is a very tedious work, but the new version of software provides a type library, you can use it to generate a category-driven automated component (derived from COleDispatchDriver). With these, you can greatly simplify the control of the call attributes and methods.

Although the control can display PDF documents, but it is only a proxy, the real or the work of Acrobat (Reader) to complete, and therefore software must be installed on both a.
there isArticle InformationsComment Information
Category column

Site Help | Site Map | Feedback |
OAPDF.COM Copyright 2009 V1.1