今天在维护一个项目的时候,突然碰到一个问题:
public Wordjdocb() {
        word = new ActiveXComponent("Word.Application");
        word.setProperty("Visible", new Variant(false));
        documents = word.getProperty("Documents").toDispatch();
        saveOnExit = false;
...