PrintableRect オブジェクト (Publisher)

指定したプリンターが印刷するシート領域を表します。 印刷領域は、指定された用紙サイズを基にプリンターによって決定されます。 プリンター シートの印刷可能な四角形は、文書ページの余白内の領域と混同しないでください。文書ページよりも大きいか小さい場合があります。

注釈

用紙サイズと文書ページ サイズが同じ場合、文書ページは用紙の中央に配置され、印刷用マークは選択しても印刷されません。

Printer.PrintableRect プロパティを使用して、PrintableRect オブジェクトを取得します。

次の例では、作業中の文書の印刷用紙の印刷可能な四角形の境界を返します。

Sub ListPrintableRectBoundaries() 
 
With ActiveDocument.AdvancedPrintOptions.PrintableRect 
 
 Debug.Print "Printable area is " & _ 
 PointsToInches(.Width) & _ 
 " by " & PointsToInches(.Height) & " inches." 
 Debug.Print "Left Boundary: " & PointsToInches(.Left) & _ 
 " inches (from left)." 
 Debug.Print "Right Boundary: " & PointsToInches(.Left + .Width) & _ 
 " inches (from left)." 
 Debug.Print "Top Boundary: " & PointsToInches(.Top) & _ 
 " inches(from top)." 
 Debug.Print "Bottom Boundary: " & PointsToInches(.Top + .Height) & _ 
 " inches(from top)." 
 
End With 
 
End Sub 

プロパティ

関連項目

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。