silvano Posted September 29, 2007 Posted September 29, 2007 hi, can i set the document Orientation after word creation and before write text ? $oWordApp = _WordCreate ("test.doc") $oDoc = _WordDocGetCollection ($oWordApp, 0) ; set landscape ?? $oDoc.Range.Text = "test" thanks
Moderators big_daddy Posted September 29, 2007 Moderators Posted September 29, 2007 You sure can... #include <Word.au3> ;WdOrientation Const $wdOrientPortrait = 0 Const $wdOrientLandscape = 1 $oWordApp = _WordCreate(@ScriptDir & "\test.doc") $oDoc = _WordDocGetCollection($oWordApp, 0) $oDoc.PageSetup.Orientation = $wdOrientLandscape $oDoc.Range.Text = "test"
silvano Posted October 1, 2007 Author Posted October 1, 2007 thank you very much! and sorry.. can i write table in word document? see the attached doc file thanks
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