![]() |
![]() |
Page.Paper
Property Paper As String
Member of Page
The Paper property returns the name of the paper size if the name exists.
The Paper property returns a read-only value.
The following code example checks to see if the active page size is set to letter-sized (8.5" ?11") paper. If it is not set to Letter settings, the correct values are applied to the SizeWidth and SizeHeight values.
Sub Test() If ActivePage.Paper <> "Letter" Then ActivePage.SizeWidth = 8.5 ActivePage.SizeHeight = 11 End If End Sub The following code example displays a warning if the selected paper size is not a standard one. Sub Test() If ActivePage.Paper = "Custom" Then MsgBox "Attention: non-standard page size used!" End If End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.