Вниз
Скачать: 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
7-18995
Wizard_Ex
2001-10-26 16:10
2002.02.07
Registry.ReadBinaryData - как изменить ключ


4-19019
Art
2001-12-10 17:20
2002.02.07
Ђ где взЯть справочную инфц по Api???


3-18736
avt
2002-01-09 23:27
2002.02.07
QReport формат А3


4-19021
}{elgi
2001-12-10 14:20
2002.02.07
добавление кнопки в BorderIcons


3-18748
DieHard
2002-01-10 17:59
2002.02.07
Можно ли создать первичный индекс в таблице Paradox




   Наверх