Page tree

Versions Compared

Key

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

Description

Excerpt

Sets or returns whether Excel will print the worksheet in draft quality. This can be used to reduce printing time. When this is set to true, Excel does not print gridlines and most graphics. This is set to false by default.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>  public boolean PrintAsDraft\{ get; set; \}
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net

<p>Public Property PrintAsDraft() As Boolean</p>

Example
Code Block
csharp
csharp
titleC#
          

...

//--- Get PrintAsDraft
          bool draft = ps.PrintAsDraft;

          //--- Set PrintAsDraft
          ps.PrintAsDraft = true;
        
Code Block
vb.net
vb.net
titlevb.net
          

...

'--- Get PrintAsDraft
          Dim draft As Boolean = ps.PrintAsDraft

          '--- Set PrintAsDraft
          ps.PrintAsDraft = True