The information in this article applies to:
SUMMARYThe Jword8.exe sample illustrates how to automate Microsoft Word 97 version 8.0 (MS Word) from a Java application. This sample shows how to invoke Word 97, make it visible, and open up an existing Word Document. It also PrintPreviews the document and Prints it. It uses the Open, PrintPreview, and PrintOut methods of MS Word 97. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: Jword8.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. After downloading the Jword8.exe file, extract the files into a new directory and ensure the files are named as seen in the "Project Files in Jword8.exe" section below. Overview of Jword8.exeThis sample illustrates how to call a COM object like Word 97 from Java. It shows how you can invoke MS Word, make it visible, and open an existing MS Word document. It also PrintPreviews and Prints the document. It makes use of the methods like Open, PrintPreview and PrintOut and properties like putVisible (or setVisible) of the MS Word Type Library.How to Use Jword8.exe
SecurityCOM components can get access to any system resources. As such, they are both very powerful and potentially very dangerous. In the Java Virtual Machine (VM) in Microsoft Internet Explorer 3.x and higher only trusted class files can use COM components. Class files from digitally signed CAB files are trusted.If the HTML file is run from Microsoft Developer Studio, the class files are also trusted. This can be very helpful during applet development. However, to deliver your applet to other users, you must put it in a signed CAB file. When it is run as an application, the class file must already be on your machine. When it is run as an applet, the class file may be downloaded to your machine. There is a potential security threat running downloaded software. To run a Java applet that uses COM components, the applet code must be trusted. For more information on trusted class files, see the Knowledge Base Article, HOWTO: Make Your Java Code Trusted in Internet Explorer. Project Files in Jword8.exe
REFERENCESYou can download the SDK for Java 2.0x at the following Web site: http://www.microsoft.com/java/For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ Additional query words:
Keywords : kbfile kbsample kbtool kbwizard kbMFC kbSDKJava300 kbVC kbCodeDownload kbSDKJava310 JCOM JVM kbSDKJava320 kbSDKJavaFAQ kbJavaVMFAQ kbJavaFAQ |
Last Reviewed: January 12, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |