Solved

ole automating ms word - Listo of mobjects/methods i can call?

Posted on 2004-10-04
4
140 Views
Last Modified: 2010-04-05
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
0
Comment
Question by:zastava101
4 Comments
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 80 total points
ID: 12223439
0
 
LVL 45

Expert Comment

by:aikimark
ID: 12223699
try

V.ActiveDocument.PrintPreview;
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12224224
in Delphi folder, in \OCX\Servers\ there is a TLB files for your office appllications - Word, Excel, etc.
0
 
LVL 11

Expert Comment

by:calinutz
ID: 12226192
I really learn best from examples, so take a look at a previously asked question that I solved with a long code:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21053076.html

You will find there almost everything you can do with Word from Delphi.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now