Sign in to follow this  
Followers 0
Golbez

is there a way to?

4 posts in this topic

im trying to make a program that will make a word document..

my problem is i can not make the program go to the next line...

it just keeps putting all the information on the same line.

$oWordApp = _WordCreate (@ScriptDir & "\print.doc",0,0)
$oDoc = _WordDocGetCollection ($oWordApp,1)
$oDoc.Range.insertAfter("Number:  12" )
$oDoc.Range.insertAfter("Number2:  33")
_WordDocSave ($oDoc)
_WordQuit ($oWordApp)

Share this post


Link to post
Share on other sites



Why not try inserting @CRLF after every so many entries to the document?

Share this post


Link to post
Share on other sites

@Golbez...You need to use line feeds (@CRLF or @LF)...Look in the helpfile for examples.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

ty for the info i will try it later on

edit: it worked perfectly! thanx guys so much

Edited by Golbez

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