L
Lera
Unregistered / Unconfirmed
GUEST, unregistred user!
Two question about Word and Delphi.--sorry,my Chinese IME doesn't work correctly.(100分)<br />1.How to tell my Variant Object(Word.basic) know the MS Word Server is closed?
I create this variant object in the following codes:
//Vword has implemented as a public variant;
if VarIsEmpty(Vword) then
begin
Vword:=CreateOleObject('Word.Basic');
VWord.Filenew;
Vword.AppShow;
end;
when i closed the Word manually, this Vword will not free correctly,why?
2.How can this Variant Object perform Wrting a hyperlink to MS word?
i have successfully insert a hyperlink field into word in this variant.it show the
URL as its title.but I want to use another Title,so I want to use another command,
so how to insert a hyperlink into it? i don't know the parameters and their
types of related WordBasic commands.I want to get some codes as example.
pls help me.
50 points for each question,and excellent answer will got more beyond these 100.
Thanks.
I create this variant object in the following codes:
//Vword has implemented as a public variant;
if VarIsEmpty(Vword) then
begin
Vword:=CreateOleObject('Word.Basic');
VWord.Filenew;
Vword.AppShow;
end;
when i closed the Word manually, this Vword will not free correctly,why?
2.How can this Variant Object perform Wrting a hyperlink to MS word?
i have successfully insert a hyperlink field into word in this variant.it show the
URL as its title.but I want to use another Title,so I want to use another command,
so how to insert a hyperlink into it? i don't know the parameters and their
types of related WordBasic commands.I want to get some codes as example.
pls help me.
50 points for each question,and excellent answer will got more beyond these 100.
Thanks.