Solved

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

Posted on 2004-10-04
4
144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

696 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