Spread Windows Forms 7.0 Product Documentation
PrintNotes Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintInfo Class : PrintNotes Property


Glossary Item Box

Gets or sets how cell notes are printed after the sheet(s).

Syntax

Visual Basic (Declaration) 
Public Property PrintNotes As PrintNotes
Visual Basic (Usage)Copy Code
Dim instance As PrintInfo
Dim value As PrintNotes
 
instance.PrintNotes = value
 
value = instance.PrintNotes
C# 
public PrintNotes PrintNotes {get; set;}

Property Value

PrintNotes setting that determines how to print cell notes

Example

This example prints notes.
C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{
     fpSpread1.Sheets[0].RowCount = 20;
     fpSpread1.Sheets[0].ColumnCount = 5;
     fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed;
     fpSpread1.Sheets[0].Cells[0, 0].Note = "test";
}

private void button1_Click(object sender, System.EventArgs e)
{
     FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo(); 
     pi.PrintNotes =FarPoint.Win.Spread.PrintNotes.AtEnd;
     fpSpread1.Sheets[0].PrintInfo = pi;
     fpSpread1.PrintSheet(-1);
}
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        FpSpread1.Sheets(0).RowCount = 20
        FpSpread1.Sheets(0).ColumnCount = 5
        FpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Fixed
        FpSpread1.Sheets(0).Cells(0, 0).Note = "test"
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim pi As New FarPoint.Win.Spread.PrintInfo()
        pi.PrintNotes = FarPoint.Win.Spread.PrintNotes.AtEnd
        FpSpread1.Sheets(0).PrintInfo = pi
        FpSpread1.PrintSheet(-1)
End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.