準備
(なし)
デザイン
1. フォーム (Form1) にボタン (button1) を配置します。
2. フォーム (Form1) にプリントドキュメント (printDocument1) を配置します。
3. フォーム (Form1) にプリントプレビューコントロール (PrintPreviewControl1) を配置します。
サンプルコード (C#)
// 名前空間の追加
using System.Drawing.Printing;
// コード
private void button1_Click(object sender, EventArgs e)
{
printPreviewControl1.Document = printDocument1;
}
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
Font font = new Font("メイリオ", 24, FontStyle.Regular);
e.Graphics.DrawString("Hello, World!", font, Brushes.Black, 0, 0);
}
解説
インストール済みのプリンターを出力します。
結果

動作確認環境
Visual Studio 2015 Professional (C# 6.0)