Previous Document Next Document

Object Model Reference : Classes : P : Page : Properties : Page.Paper


Page.Paper

Property Paper As String

Description

Member of Page

The Paper property returns the name of the paper size, if such a name exists.

The Paper property returns a read-only value.

VBA example

The following VBA example checks whether the active page size is set to letter-sized (8.5" × 11") paper. If it is not letter-sized, 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
VBA example
The following VBA 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.