Вниз
Скачать: CL | DM;

Запуск word   Найти похожие ветки 

 
jenbond ©   (2002-01-24 10:08) [0]

Подскажите как попроще реализовать запуск Word и сразуже предачу в него текста с активной формы!


 
MetallAdm ©   (2002-01-24 11:18) [1]

А как енто проше ?!!

implementation

uses OleAuto;
var
V : Variant ;
..
V := 0; // at some point just to initialise

if V = 0 then
begin
V := CreateOLEObject("Word.Application");
V.WordBasic.AppShow;
end;

V.WordBasic.Fileopen("Your Word Doc name");
V.WordBasic.EditBookmark("Title",0,0,0,1);
V.WordBasic.Insert(Title);
....

Можно Так а можно и так ...


var
Word: Variant;
begin
Word := CreateOleObject("Word.Basic");
with Word do
begin {Pure WordBASIC commands follow...}
FileNew("Normal");
Insert("This is the first line"#13);
Insert("This is the second line"#13);
FileSaveAs("c:\temp\test.txt", 3);
end;
end;






Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.008 c
1-18788
OGR
2002-01-21 16:06
2002.02.07
Как передавать параметры из командной строки?


6-18931
krimer
2001-11-10 17:52
2002.02.07
pomoghite gde tut oshibka


4-19027
YUS
2001-12-10 19:08
2002.02.07
PostMessage


4-19020
ikar
2001-12-08 13:51
2002.02.07
Системные ловушки и VCL


3-18769
Serhy
2002-01-12 02:30
2002.02.07
Index is out of date




   Наверх