[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

Delphi Programming question

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
malk
Asked:
malk
  • 3
  • 2
1 Solution
 
RBertoraCommented:
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
 
malkAuthor Commented:
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
 
RBertoraCommented:
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
 
RBertoraCommented:
Dope, ok I see you already gave your address...
increase the points , and you will get the mail..


Rob.

0
 
malkAuthor Commented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now