Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a boolean that represents whether or not Word will use printer metrics to lay out this document.

Signature
C#
C#

 public boolean UsePrinterMetrics{ get; set; }
Signature
vb.net
vb.net

Public Property UsePrinterMetrics() As Boolean
Remarks

MS Word equivalent: Tools menu > Options... > Compatibility tab > Compatibility options for [filename].doc section > Options > Use printer metric to lay out document

Example
Code Block
csharp
csharp
titleC#
            //--- Return UsePrinterMetrics
          bool usePrinterMetrics = cs.UsePrinterMetrics;

          //--- Set UsePrinterMetrics
          cs.UsePrinterMetrics = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return UsePrinterMetrics
          Dim usePrinterMetrics As Boolean = oCompatibilitySettings.UsePrinterMetrics

          '--- Set UsePrinterMetrics
          cs.UsePrinterMetrics = True