- 21
- 0
- 约1.23万字
- 约 49页
- 2020-10-18 发布于广东
- 举报
* 利用Word服务器的Selection接口可以在文档中选定一个区域,并对所选区域进行相关操作。 Selection接口 % 返回Word服务器的Selection接口的句柄 Selection = Word. Selection; % 设置选定区域的起始位置为文档内容的末尾 Selection.Start = Content.end; Selection.TypeParagraph; % 回车,另起一段 xueqi = ( 2009 — 2010 学年 第一学期); Selection.Text = xueqi; % 在选定区域输入文字内容 Selection.Font.Size = 12; % 设置字号为12 Selection.Font.Bold = 0; % 字体不加粗 Selection.paragraphformat.Alignment = wdAlignParagraphCenter; % 居中对齐 Selection.MoveDown; % 光标移到所选区域的最后 Selection.TypeParagraph; % 回车,另起一段 Selection.TypeParagraph; % 回车,另起一段 Selection.Font.Size=10.5; %
原创力文档

文档评论(0)