DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: How to insert table in Word without clipboard using vb.net

You can try FormattedText property instead of the clipboard method, refer to my answer here:

Rem implement without the clipboard
myDoc.Range(tbl.Cell(tbl.Rows.count, 1).Range.Start, tbl.Cell(tbl.Rows.count, 1).Range.Start).FormattedText = tbl.Rows(2).Range.FormattedText

So, TRY THIS FIRST! give it a shot !!

open wTemp(readonly)
dim wTable as word.table = wTemp.tables(1) ' the table I need is

Top comments (0)