Hi JCOM Community,
Is it possible to view A Word document in Swing
Window?
Actually, is possible to view in a Swing window all
Microsoft documents? (Excel, Word, PowerPoint, ...
Visio)
With this Snippet code, you generously offered in
this site, it opens a new window:
//instantiate Word and make it visible
System.out.println("Starting Word...");
IDispatch wordApplication = new IDispatch
(rm, "Word.Application");
wordApplication.put("Visible", new Boolean
(true));
//open an existing word document
IDispatch wordDocuments = (IDispatch)
wordApplication.get("Documents");
Thank you for your valuable help.
Ali