修改 用jacob解析word代码一段 在线等
Dispatch selection = app.getProperty("Selection").toDispatch();// 获得对Selection组件
Dispatch.call(selection, "HomeKey", new Variant(6));// 移到开头
Dispatch find = Dispatch.call(selection, "FindAll").toDispatch();// 获得Find组件
Dispatch.put(find, "Text", "bili"); // 查找字符串"name"
// Dispatch.put(find, "MatchCase", "True"); //大小写匹配
// Dispatch.put(find, "MatchWholeWord", "True"); // 全字符匹配
Dispatch.call(find, "Execute"); // 执行查询
Dispatch.put(selection, "Text", "张三"); // 替换为"张三"
怎么把所有的bili 替换掉
以上代码只可以替换一个 我要replace all 那种情况