Share via


WorksheetBase.PrintedCommentPages Property

Gets the number of comment pages that will be printed for the current worksheet. This property can be used only in Excel 2010 projects.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property PrintedCommentPages As Integer
public int PrintedCommentPages { get; }

Property Value

Type: System.Int32
The number of comment pages that will be printed for the current worksheet.

Exceptions

Exception Condition
MissingMemberException

This property is used in an Excel 2007 project.

Remarks

The PrintedCommentPages property will only return a number greater than zero if the Comments setting on the Sheet tab of the Page Setup dialog box is set to At end of sheet. This property will return zero if the sheet is a Chart sheet or a MS Excel 5.0 Dialog sheet.

Note

This property appears in IntelliSense in Excel 2007 projects that target the .NET Framework 4. However, this property cannot be used in Excel 2007 projects.

.NET Framework Security

See Also

Reference

WorksheetBase Class

Microsoft.Office.Tools.Excel Namespace