日期:2014-05-17 浏览次数:20928 次
/// <summary>
/// 新建表格
/// </summary>
/// <param name="doc"></param>
/// <param name="oral"></param>
private static void NewTable(Document doc,Oral_subject oral)
{
if(doc != null)
{
object defaultV = System.Reflection.Missing.Value;
object what = WdUnits.wdLine;
object count = 1;
if (doc.Tables.Count == 0)
{
object bName="Items";
doc.Bookmarks.get_Item(ref bName).Select();
}
else
{
doc.Tables[doc.Tables.Count].Select();
//what = WdUnits.wdCharacter;
//doc.Application.Selection.MoveRight(ref what, ref count, ref defaultV);
&nbs