Solved

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

Posted on 2004-10-04
4
143 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process Javascript errors with Delphi TWebBrowser 1 209
Delphi - replicating a form 8 93
Correct Component for Shopping Cart. 2 121
QRReport  TQrmemo vertical stretching 1 57
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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