Solved

Delphi Programming question

Posted on 1997-09-05
5
132 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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