Solved

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

Posted on 2004-10-04
4
139 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
Comment Utility
0
 
LVL 45

Expert Comment

by:aikimark
Comment Utility
try

V.ActiveDocument.PrintPreview;
0
 
LVL 12

Expert Comment

by:Ivanov_G
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

11 Experts available now in Live!

Get 1:1 Help Now