Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Writing macro in delphi for ms word (https://www.delphipraxis.net/16752-writing-macro-delphi-ms-word.html)

apolon 22. Feb 2004 20:54


Writing macro in delphi for ms word
 
Hi All

Sorry I can not speak german well :cry:

I have a question.
How can i write a macro for ms Word in delphi?

best regards
apolon

Robert_G 22. Feb 2004 21:05

Re: Writing macro in delphi for ms word
 
Hi apolon :hi:
Unfortunatly I'm not one to be bothered with OLE & Word automation (would be fortunatly for me :zwinker: ).
But maybe this will help you.
I just took a look on google using these searchwords Bei Google suchendelphi AND word AND macro AND ole .
Good look...

DP-Maintenance 22. Feb 2004 21:06

DP-Maintenance
 
Dieses Thema wurde von "Daniel" von "VCL-Komponenten und Controls" nach "Sonstige Fragen zu Delphi" verschoben.

Stanlay Hanks 22. Feb 2004 21:08

Re: Writing macro in delphi for ms word
 
Hi apolon!

I'm not sure, but I think, it is not possible to write macros for ms word in delphi because this macros are written in basic or in another ms language (I hope that's right). What do you want to do? Do you want to remote control Word (printing, new document...)? Then you could use the server components that are included in Delphi (7?). Or, if you want to call word macros from delphi: click

Bye, Stanlay :hi:

PS: I'm sure, I made a lot of mistakes :oops: please ignore them :wink:

ps: I see, Robert posted the same link :wink:

apolon 22. Feb 2004 21:12

Re: Writing macro in delphi for ms word
 
Hi my friends

Thanks a lot for your answers.

I want to put a memo on form and write VBA Codes then send these codes to word and name them to a macro in my Doc file.

IS it possible?

Stanlay Hanks 22. Feb 2004 21:17

Re: Writing macro in delphi for ms word
 
Hi! I can't believe that this is possible because the possibility of executing external source in a word document, would be a serious security leak :gruebel:

Bye, Stanlay :hi:

Robert_G 22. Feb 2004 21:30

Re: Writing macro in delphi for ms word
 
As I said I got no experiences with OLE & Word automation, but let me suggest you a way.
As you propably know, these VBA modules are saved in plain text. Maybe you can build one dynamicly and add it to the user's normal.dot.
Now you can access all your macros, just like shown in the link above.
Or you can get a clue of this page, I couldn't without any OLE experiences... :oops:

p.s.: Don't hurt me for writing crap :angle2:

Stanlay Hanks 22. Feb 2004 21:34

Re: Writing macro in delphi for ms word
 
@Robert: Is it possible to change the normal.dot during using word or editing a word document? :gruebel:

Robert_G 22. Feb 2004 21:35

Re: Writing macro in delphi for ms word
 
OK, you did it, now i'm curious... :lol:
I'll give it a try...

Robert_G 22. Feb 2004 23:08

Re: Writing macro in delphi for ms word
 
Sorry, i was forced ( :zwinker: ) to watch "Finding nemo".
I'll get back to it tomorrow...


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz