Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.02.07;
Скачать: 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 вся ветка

Текущий архив: 2002.02.07;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.014 c
3-18741
Andrey007
2001-12-29 10:31
2002.02.07
Вопрос по Query.Locate.


1-18863
dim2001
2002-01-22 21:44
2002.02.07
Как распечатать StringGrid на лазерном принтере?


4-19031
REL
2001-12-10 13:49
2002.02.07
Модем.


3-18702
Лена
2002-01-09 08:21
2002.02.07
Синтаксис команды UPDATE


7-19013
SERGX
2001-10-27 18:25
2002.02.07
плиз