zastava101
asked on
ole automating ms word - Listo of mobjects/methods i can call?
i found some example on the net about ole automation with ms word/excel
some examples like:
procedure TForm1.Button1Click(Sender : TObject);
var
V: Variant;
begin
V := CreateOleObject('Word.Basi c');
V.AppShow;
V.FileNew;
V.Insert('Automation is easy!');
end;
but when i tryed to find some examples how to perform print preview, i wasnt so lucky. So i ask if anyone knows some resource url, when i can find list of all objects/methods i can call after creating word.ole object?
thanks in advance
some examples like:
procedure TForm1.Button1Click(Sender
var
V: Variant;
begin
V := CreateOleObject('Word.Basi
V.AppShow;
V.FileNew;
V.Insert('Automation is easy!');
end;
but when i tryed to find some examples how to perform print preview, i wasnt so lucky. So i ask if anyone knows some resource url, when i can find list of all objects/methods i can call after creating word.ole object?
thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
in Delphi folder, in \OCX\Servers\ there is a TLB files for your office appllications - Word, Excel, etc.
I really learn best from examples, so take a look at a previously asked question that I solved with a long code:
https://www.experts-exchange.com/questions/21053076/Interfacing-Delphi-with-word-MSWord-from-Office-2000.html
You will find there almost everything you can do with Word from Delphi.
https://www.experts-exchange.com/questions/21053076/Interfacing-Delphi-with-word-MSWord-from-Office-2000.html
You will find there almost everything you can do with Word from Delphi.
V.ActiveDocument.PrintPrev