C
chirue
Unregistered / Unconfirmed
GUEST, unregistred user!
1.如何隐藏打开一个WORD文档
2.光标移动到文档的最后,并回车,设置为右对齐模式
3.插入一个图片文件
4.保存并关闭WORD文档
这个功能我在DELPHI中已经实现,但BCB中不知如何实现,如果分数不够,我还可以加分
try
Wordhandle:=CreateOLEObject('Word.Application');
Wordhandle.Documents.open('D:/test.doc',false);
wordhandle.visible:=false;
wordhandle.Selection.GoTo($00000003,$00000001, Count:=500000, Name:='');
wordhandle.Selection.EndKey;
wordhandle.Selection.TypeParagraph;
wordhandle.Selection.Paragraphs.Alignment := 2;
wordhandle.Selection.Paste;
wordhandle.Selection.Paragraphs.Alignment := 2;
wordhandle.ActiveDocument.Save;
finally
wordhandle.quit;
end;
2.光标移动到文档的最后,并回车,设置为右对齐模式
3.插入一个图片文件
4.保存并关闭WORD文档
这个功能我在DELPHI中已经实现,但BCB中不知如何实现,如果分数不够,我还可以加分
try
Wordhandle:=CreateOLEObject('Word.Application');
Wordhandle.Documents.open('D:/test.doc',false);
wordhandle.visible:=false;
wordhandle.Selection.GoTo($00000003,$00000001, Count:=500000, Name:='');
wordhandle.Selection.EndKey;
wordhandle.Selection.TypeParagraph;
wordhandle.Selection.Paragraphs.Alignment := 2;
wordhandle.Selection.Paste;
wordhandle.Selection.Paragraphs.Alignment := 2;
wordhandle.ActiveDocument.Save;
finally
wordhandle.quit;
end;