技術(shù) 點(diǎn)
- 技術(shù)
- 點(diǎn)
- V幣
- 點(diǎn)
- 積分
- 479
|
2#
發(fā)表于 2014-4-8 17:49:53
|
只看該作者
先完成兩個(gè)先
1,
- private void button2_Click(object sender, RibbonControlEventArgs e)
- {
- //插入字符串
- int iIngEnd = GetWordApp().ActiveDocument.Paragraphs[3].Range.End;
- int iIngStart = GetWordApp().ActiveDocument.Paragraphs[3].Range.Start;
- GetWordApp().ActiveDocument.Range(iIngStart, iIngEnd).InsertAfter("西西師傅!我來了");
-
- }
復(fù)制代碼
2,- private void button3_Click(object sender, RibbonControlEventArgs e)
- {
- //刪除嵌入圖片
- foreach (var item in GetWordApp().ActiveDocument.InlineShapes)
- {
- InlineShape aa = item as InlineShape;
- aa.Delete();
- }
- }
復(fù)制代碼
|
|