LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to sets the orientation of each page of the document to either Portrait or Landscape in Labwindows?

The function "WordRpt_PageOrientation " has a disadvantage because it can just set the orientation of all pages of the document to either Portrait or Landscape. But I want to set the orientation of each page of the document to either Portrait or Landscape. For example, the first page is  Portrait, the second is Lanscape and the third page is Portrait.

 If anyone can help me about this problem, I am really gratefull.

0 Kudos
Message 1 of 3
(4,260 Views)

Hello liumiyangguang!

 

The Word Report Generation Instrument Driver (<CVI Installation>\toolslib\activex\wordWordRpt_PageOrientation function enforces the page orientation attribute for the entire Word document (i.e. on the page setup handle of the entire document) using Word_GetProperty and Word_SetProperty. This action is similar to selecting the Page Layout » Orientation item in Word.

 

In order to accomplish what you are proposing, you would have to enforce that attribute for individual pages. However, this is a slightly more advanced operation, which the Word Report Instrument doesn't seem to support.

This is how one would normally perfom the desired effect, manually, in Word:

http://office.microsoft.com/en-us/word-help/rotate-page-orientation-between-portrait-and-landscape-i...

 

Best regards!

- Johannes

0 Kudos
Message 2 of 3
(4,230 Views)

Johannes,

     Thanks a lot ! 

     You mean that  Word_SetProperty and Word_GetProperty cannot set the orientation of individual pages of the document to either Portrait or Landscape in Labwindows,  isn't  that right? 

     Maybe I have to set the property manually in Word.

     Thank you very much indeed !

0 Kudos
Message 3 of 3
(4,210 Views)