private void Form1_Load(object sender, System.EventArgs e)
{
fpSpread1.ActiveSheet.Cells[1, 1].NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote;
fpSpread1.ActiveSheet.Cells[1, 1].Note = "印刷可能なセルノート";
fpSpread1.ActiveSheet.Cells[9, 3].CellType = new FarPoint.Win.Spread.CellType.TextCellType();
fpSpread1.ActiveSheet.SetText(9, 3, "Print");
}
private void button1_Click(object sender, System.EventArgs e)
{
//セルノートを表示イメージのまま印刷します
fpSpread1.ActiveSheet.PrintInfo.PrintNotes = FarPoint.Win.Spread.PrintNotes.AsDisplayed;
//印刷プレビュー画面を表示します
fpSpread1.ActiveSheet.PrintInfo.Preview = true;
//アクティブシート印刷します
fpSpread1.PrintSheet(fpSpread1.ActiveSheet);
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
FpSpread1.ActiveSheet.Cells(1, 1).NoteStyle = FarPoint.Win.Spread.NoteStyle.StickyNote
FpSpread1.ActiveSheet.Cells(1, 1).Note = "印刷可能なセルノート"
FpSpread1.ActiveSheet.Cells(9, 3).CellType = New FarPoint.Win.Spread.CellType.TextCellType
FpSpread1.ActiveSheet.SetText(9, 3, "Print")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'セルノートを表示イメージのまま印刷します
FpSpread1.ActiveSheet.PrintInfo.PrintNotes = FarPoint.Win.Spread.PrintNotes.AsDisplayed
'印刷プレビュー画面を表示します
FpSpread1.ActiveSheet.PrintInfo.Preview = True
'アクティブシート印刷します
FpSpread1.PrintSheet(FpSpread1.ActiveSheet)
End Sub