Jump to content
Sign in to follow this  
silvano

_word landscape

Recommended Posts

silvano

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

Share this post


Link to post
Share on other sites
big_daddy

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"

Share this post


Link to post
Share on other sites
silvano

thank you very much!

and sorry.. can i write table in word document?

see the attached doc file

thanks

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.