The interface " IAcroAXDocShim" will appear in the list of interfaces. Under the section labeled "Available ActiveX Controls", find and select the "Adobe Acrobat 7.0 Browser Document " control from the combo box. Now click "Open" and a new dialog will appear. ![]() While in the Class View tab, right click on your project and select "Add->Add Class." and choose the option "MFC Class From ActiveX". ![]() The first step to using the Acrobat Reader 7 control is to create an MFC class from an ActiveX control using the Class Wizard. I chose to use a CWnd as the view instead of a CFormView for the demo project, this will help you understand how to create the control programmatically instead of just plopping it on a dialog from a toolbox. The code is very simple and straightforward to use, it is mainly intended to show you how to import the control into your own application and not just for copying and pasting the code from the demo source. The PDFs that are opened with this control can also take advantage of the Acrobat JavaScript to communicate with each other just as they would if they were opened within a web page. ![]() With the release of Adobe Acrobat 7, the Acrobat Reader ActiveX control is now fully supported and documented, this gives application writers much more flexibility when distributing PDF files to customers. According to the Acrobat Developer FAQ, the ActiveX control was only developed for use in the Microsoft Internet Explorer Web Browser and was not supported or licensed for use in any other application. Previous versions of Adobe Acrobat did not allow the ActiveX control to be used within an external application. NET 2003, but the code can easily be integrated into any version of Visual C++. ![]() The source code and project file was written using Microsoft Visual C++. The code was kept simple and slim so that it focused more on the actual content. The sample project included uses a minimal MDI MFC application to show that you can use multiple instances of the control within the same application. This article is a simple how-to article on using the Adobe Acrobat 7 ActiveX control within a C++ application using MFC.
0 Comments
Leave a Reply. |