예제 #1
0
 /// <summary>
 /// 创建表格
 /// </summary>
 /// <param name="rowNumber">行数</param>
 /// <param name="columnNumber">列数</param>
 /// <param name="columnWeight">每一列的宽度</param>
 /// <returns>第几个表格</returns>
 public void CreateTable(int rowNumber, int columnNumber, List <int> columnWeight)
 {
     _WordTable                   = new MyWordTable.WordTable();
     _WordTable.TableOne          = _MainDoc.Tables.Add(_WordApplicMain.Selection.Range, rowNumber, columnNumber, ref Nothing, ref Nothing);
     _WordTable.DesginTableEvent += _DesginTable;
     _WordTable.ConstructTable(columnWeight);
 }
예제 #2
0
 /// <summary>
 /// 创建表格
 /// </summary>
 /// <param name="rowNumber">行数</param>
 /// <param name="columnNumber">列数</param>
 /// <param name="columnWeight">每一列的宽度</param>
 /// <returns>第几个表格</returns>
 public void CreateTable(int rowNumber, int columnNumber, List<int> columnWeight)
 {
     _WordTable = new MyWordTable.WordTable();
     _WordTable.TableOne = _MainDoc.Tables.Add(_WordApplicMain.Selection.Range, rowNumber, columnNumber, ref Nothing, ref Nothing);
     _WordTable.DesginTableEvent += _DesginTable;
     _WordTable.ConstructTable(columnWeight);
 }
예제 #3
0
 /// <summary>
 /// 打开word模板
 /// </summary>
 public void OpenWordTemplate()
 {
     _MainDoc            = OpenWordTemplateFile(_TemplateFilePath);
     _WordTable          = new MyWordTable.WordTable();
     _WordTable.TableOne = _MainDoc.Tables[1];
 }
예제 #4
0
 /// <summary>
 /// 打开word模板
 /// </summary>
 public void OpenWordTemplate()
 {
     _MainDoc = OpenWordTemplateFile(_TemplateFilePath);
     _WordTable = new MyWordTable.WordTable();
     _WordTable.TableOne = _MainDoc.Tables[1];
 }