public void InsertTable(string bookMark, ITableInsert tableInsert, TableDesign tableDesign = TableDesign.TableGrid) { var item = _doc.Bookmarks[bookMark]; if (item != null) { var table = _doc.AddTable(tableInsert.RowCount, tableInsert.ColumnCount); table.Design = tableDesign; tableInsert.InsertHead(table); tableInsert.FillData(table); item.Paragraph.InsertTableAfterSelf(table); } }
public static IConvertible ExecuteOnAndReturnRowId(this ITableInsert insert, ICommandChannel on) { insert.ExecuteOn(on); return(on.LastInsertedId); }
public static async Task <IConvertible> ExecuteOnAndReturnRowIdAsync(this ITableInsert insert, IAsyncCommandChannel on) { await insert.ExecuteOnAsync(on); return(await on.LastInsertedIdAsync()); }