Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Sets or returns whether comments on the worksheet should be printed. 

 _(This is not supported for charts.)_{excerpt}
{signature:C#}
 public boolean PrintComments{ get; set; }
{signature}{signature:vb.net}
Public Property PrintComments() As Boolean
{signature}
{remarks}
If the comments should be printed at the end of the worksheet, then set the [PrintCommentsAtEnd|PageSetup.PrintCommentsAtEnd] property to true, otherwise the comments will be printed as they are displayed.
{remarks}
{example}{code:csharp|title=C#}

          //--- Get PrintComments
          bool prntComments = ps.PrintComments

          //--- Set PrintComments
          ps.PrintComments = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Get PrintComments
          Dim prntComments As Boolean = ps.PrintComments

          '--- Set PrintComments
          ps.PrintComments = True
        {code}

{example}