Solved

Delphi Programming question

Posted on 1997-09-05
5
133 Views
Last Modified: 2010-04-04
I am trying to open up word, open a txt file, run a macro, save the file as Word 6 format, then close.  I can open word and open the file(FileOpen), but do not know the method for running the macro or quitting.  Does anyone know if these methods are documented anywhere.  I have searched all over.

Malk
0
Comment
Question by:malk
[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
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
RBertora earned 50 total points
ID: 1343870
This is how to run a macro:

WordDoc.ToolsMacro('MacroName',1);

To quit use:

WordDoc.FileExit;

Please would you be kind and mark this with an excellent
I am trying to get my name back onto the hi score list :)

if you want a list of these functions I can help you,
but please tempt me with lots more points. :)

Rob
0
 

Author Comment

by:malk
ID: 1343871
Very good so far, but I still need to know how to save it in Word 6 format before quitting!

If you send a listing, I will increase points to 50.

mcunniffe@aol.com

Malk
0
 
LVL 7

Expert Comment

by:RBertora
ID: 1343872
ok just increase the points....
I will have to send a listing
to you via email though... so you must
gimme your email address....

Rob.

0
 
LVL 7

Expert Comment

by:RBertora
ID: 1343873
Dope, ok I see you already gave your address...
increase the points , and you will get the mail..


Rob.

0
 

Author Comment

by:malk
ID: 1343874
Have increased points to 50, will double it if you can answer my question on Delphi 3 and website.  I have a real ongoing problem with this.  If you know of someone with a working copy of delphi3 using the internet components supplied, alongside Website, please send me a copy of a simple working program.

Malk
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

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 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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month4 days, 2 hours left to enroll

630 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