aspose file tools
The moose likes Java in General and the fly likes Run a MS Word Macro from my App Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Run a MS Word Macro from my App" Watch "Run a MS Word Macro from my App" New topic
Author

Run a MS Word Macro from my App

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi there -
I have a small app that opens a MS word document.
Is it possible to run Macros on this document?
I need to insert text at bookmarks within the document after opening it.
Can someone tell me how to do this or where to go to find out.
Thanks in advance,
D
Fabrizio Gianneschi
Ranch Hand

Joined: Nov 29, 2001
Posts: 70
Read this thread: http://forum.java.sun.com/thread.jsp?forum=31&thread=41377
There's a way to create and manipulate MSWord (and ActiveX objects) in Java.
ActiveXComponent doc = new ActiveXComponent("Word.Application");
It's based on the com.jacob.activeX library (free).
Bye

------------------
Fabrizio Gianneschi
Sun Certified Programmer for Java2 Platform


Fabrizio Gianneschi<br />SCPJ2, SCWCD, SCBCD
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Run a MS Word Macro from my App
 
Similar Threads
Completed part 2 & 3 - finally
empty lines in a document.
Design document
MS-word document file to XML in Java
Coverting RTF to DOC