Link to home
Start Free TrialLog in
Avatar of zastava101
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.Basic');
 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
Avatar of BlackTigerX
BlackTigerX

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aikimark
try

V.ActiveDocument.PrintPreview;
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.