Код: Выделить всё
Dogovor.Selection.TypeText(Edit1.Text);

Модераторы: Duncon, Naeel Maqsudov, Игорь Акопян, Хыиуду
Код: Выделить всё
Dogovor.Selection.TypeText(Edit1.Text);
Dogovor.Label1.Text:="qweqweqwe";имя его "Label1". Теперь как к нему обратиться
Зачем это надо? Размещай объекты типа надпись и пихай текст в них
Не канаетDogovor.Label1.Text:="qweqweqwe";
Код: Выделить всё
uses ..., comobj;
....
private
{ Private declarations }
public
{ Public declarations }
end;
var
dogovor:Variant;
implementation
....
Dogovor:=CreateOleObject('Word.Application');
Dogovor.Documents.Open('C:\Диплом\Doc1.doc');
If vartype(Dogovor)=varDispatch then Dogovor.visible:=true;
Dogovor.Label1.text:=Edit1.Text;
//Dogovor.Documents.Label1.text:=Edit1.Text;
If vartype(Dogovor)=varDispatch then
begin
Dogovor.Displayalerts:=false;
Dogovor:=Unassigned;
end;
...