2009-09-03 50 views

回答

2

絕對定位的工作方式是您需要的Y座標需要從文檔的最大高度中減去。我所做的是創建一個常數:

Public Const INCH As Integer = 72 

因爲72是創建英寸的點數。然後,您可以創建基於此常數其他常數,如:

Public Const MAX_HEIGHT As Single = 11 * INCH 
Public Const MAX_WIDTH As Single = 8.5 * INCH 
Public Const TOP_MARGIN As Single = 0.5 * INCH 

所以放置東西在頁面的頂部,你Y座標應該是:

MAX_HEIGHT - TOP_MARGIN 

希望這有助於:)