childbaby所问的“在word中如何插入新的表格”就是我发问的。(100分)

  • 主题发起人 luckynavy
  • 开始时间
L

luckynavy

Unregistered / Unconfirmed
GUEST, unregistred user!
如何用delphi在word中生成新的表格呀?
var
wordsource:variant;
...
wordsource:=createoleobject('word.application');
wordsource.documents.open('c:/myword.doc');
接着要往里插入一个3行3列的新表格。谢谢!
 
var
Tabel1: Table;
R: Range;
..
R := Doc.Range;
R.Collapse(Direction);
Tabel1 := Doc.Tables.Add(R, 3, 3, EmptyParam, EmptyParam);
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
933
SUNSTONE的Delphi笔记
S
顶部