Change page orientation of a Word document

arthersan

New Member
Hi all,

I'm trying to change the page orientation of a Word document to landscape using Blue Prism. I've seen all the actions in the MS Word and MS Word Extended VBOs and I can't find any helpul action. Maybe running a macro could be a good idea, but I can't even find an action stage to run a macro on a Word document. Anyone could give me some help please?
Thanks in advance.
 

Aniteja

New Member
Create a code stage for the portrait/landscape functionality

Dim doc as Object = GetDocument(handle,documentname)
doc.PageSetup.Orientation=1 //for LandScape and set to 0 for portrait
 
Top