Golbez Posted July 2, 2008 Posted July 2, 2008 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)
Kitsune Posted July 3, 2008 Posted July 3, 2008 Why not try inserting @CRLF after every so many entries to the document?
DjDeep00 Posted July 3, 2008 Posted July 3, 2008 @Golbez...You need to use line feeds (@CRLF or @LF)...Look in the helpfile for examples.
Golbez Posted July 3, 2008 Author Posted July 3, 2008 (edited) ty for the info i will try it later on edit: it worked perfectly! thanx guys so much Edited July 3, 2008 by Golbez
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now