Sign in to follow this  
Followers 0
darzanmihai

Word management?

3 posts in this topic

Is there an UDF that can add text and pictures to Word(not links)?I sow that the WordUDF allows only to add only links.....


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites



Is there an UDF that can add text and pictures to Word(not links)?I sow that the WordUDF allows only to add only links.....

If you look at the help for the _WordCreate() function in word.au3 example 4 shows how to add text to a word document.

; *******************************************************

; Example 4 - Create an invisible word window, open a document,

; append some text, and quit saving changes.

; *******************************************************

;

#include <Word.au3>

$oWordApp = _WordCreate (@ScriptDir & "\Test.doc", 0, 0)

$oDoc = _WordDocGetCollection ($oWordApp, 0)

$oDoc.Range.insertAfter ("This is some text to insert.")

_WordQuit ($oWordApp, -1)


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

If you look at the help for the _WordCreate() function in word.au3 example 4 shows how to add text to a word document.

But how could I set the text to be centered or written in Bold, Underline or Italic?


I do not like stupid and idiot people that write idiot things...If you are one, do not write.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0