public void insertText(String text) { // Get the current selection within Word at the moment. If // a new document has just been created then this will be at // the top of the new doc Dispatch selection = Dispatch.get(MsWordApp,"Selection").toDispatch(); //Put the specified text at the insertion point Dispatch.put(selection,"Text",text);
但是我只能实现在其中插入文本内容
插入图片,表格我就搞不来了
高手们
帮帮忙吧
互相学习 共同提高
希望对你有帮助。^_^
{
// Get the current selection within Word at the moment. If
// a new document has just been created then this will be at
// the top of the new doc
Dispatch selection = Dispatch.get(MsWordApp,"Selection").toDispatch();
//Put the specified text at the insertion point
Dispatch.put(selection,"Text",text);
}
用上面这个可以插入文本,插入图片不知道参数该写什么,
put()方法里也不知道该写什么