ole在word报表里增加一行

ole在word表格里增加一行 vDocQ vWordApp.OlePropertyGet(Documents).OleFunction(Open, fileNameQ.c

ole在word表格里增加一行
 vDocQ= vWordApp.OlePropertyGet("Documents").OleFunction("Open", fileNameQ.c_str());  //打开文件
 vDocQ. OleProcedure("Activate");  // 激活文件
 wordActiveDoc =  vWordApp.OlePropertyGet("ActiveDocument");
wordTables = wordActiveDoc.OlePropertyGet("Tables");  //获得tables
 wordTable1 = wordTables.OleFunction("Item",(Variant) 1);//第一个表格
想在第一个表格的最后增加一行,怎么写?
谢谢了

wordRange = wordTable1.OlePropertyGet("Selection");
wordRange.OleFunction("InsertRows",1);
为什么不对呢?
[解决办法]
求助妖哥,谢谢了
[解决办法]
给妖哥发信息吧
[解决办法]
wordRange = wordTable1.OlePropertyGet("Rows").OleFunction("Item",(Variant) 3).OleFunction("Select");
wordRange= wordRange.OleFunction("Collapse",0);
wordRange. OleFunction("InsertRowsBelow",(Variant)1);
抛出异常:IsBound(),为什么?
[解决办法]

wordRange= wordRange.OleFunction("Collapse",0);
抛出异常:IsBound(),为什么?谢谢了