Jump to content
Sign in to follow this  
Golbez

is there a way to?

Recommended Posts

Golbez

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
Kitsune

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

Share this post


Link to post
Share on other sites
DjDeep00

@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
Golbez

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.