Вниз
Скачать: 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.007 c
3-18707
amamed_3071
2002-01-09 16:53
2002.02.07
Error loading Midas.dll (Win98)


3-18762
Olfi
2002-01-12 10:34
2002.02.07
Как округлить число в таблице(TQuery) после деления?


1-18798
Filat
2002-01-16 20:42
2002.02.07
Версии Word 97 и 2000. Почему не получаются отчёты?


1-18857
@andrew
2002-01-21 11:15
2002.02.07
Привет Всем! У меня почему-то такой глюк.


6-18947
AlexH
2001-11-15 14:31
2002.02.07
Winpopup




   Наверх