ここでは、次のサンプルについて説明します。
Simple Printing Example3 サンプル
Simple Printing Example2 サンプル
Simple Printing Example1 サンプル
Simple Printing Example4 サンプル
Simple Printing Example5 サンプル
SimplePad サンプル
Simple Printing Example3 サンプル
このサンプルでは、PrintDialog コントロールを使用して、ユーザーがプリンタを選択できるようにする方法を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Drawing、System.Windows.Forms、System.ComponentModel、System.Drawing.Printing、System.IO
このサンプルで使用されているクラス
Button、Form、Component、Message、Container、StreamReader、PrintDialog、File、Style、PrintDocument、Stream、Exception、MessageBox、Icon、Image、EventHandler、Application、Thread、EventArgs、Control
Simple Printing Example2 サンプル
このサンプルでは、複雑な印刷ジョブを実行する場合や、複数のフォームで特定の印刷機能を再利用する必要がある場合に、既定の PrintDocument をオーバーライドする方法を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Drawing、System.Windows.Forms、System.ComponentModel、System.Drawing.Printing、System.IO
このサンプルで使用されているクラス
Button、Form、Component、Stream、Message、Container、StreamReader、Style、File、PrintDocument、Exception、MessageBox、Icon、Image、Application、Thread、EventArgs、EventHandler、Control
Simple Printing Example1 サンプル
このサンプルは、アプリケーションで印刷を実行できるようにするために必要なロジックを示します。このサンプルでは、PrintDocument と、アプリケーションで処理する必要のある各種のイベントについても説明します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Drawing、System.Windows.Forms、System.ComponentModel、System.Drawing.Printing、System.IO
このサンプルで使用されているクラス
Button、Form、Font、Page、Component、String、Graphics、Message、EventHandler、Container、StreamReader、Style、PrintDocument、EventArgs、Stream、StringFormat、Exception、MessageBox、Icon、PrintPageEventArgs、Thread、PrintPageEventHandler、Application、Image、Brush、Brushes、Control
Simple Printing Example4 サンプル
このサンプルでは、PageSettings オブジェクトと PageSetupDialog コントロールを使用して、ユーザーが各種の印刷オプションを選択できるようにする方法を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Drawing、System.Windows.Forms、System.ComponentModel、System.Drawing.Printing、System.IO
このサンプルで使用されているクラス
Button、Form、Page、PageSettings、Component、Style、Message、Exception、MessageBox、PrintDialog、Image、PrintDocument、EventArgs、Stream、PageSetupDialog、EventHandler、Container、StreamReader、File、Control、Application、Icon、Thread
Simple Printing Example5 サンプル
このサンプルでは、PrintPreview コントロールを使用して、ユーザーが印刷前にドキュメントの印刷プレビューを確認できるようにする方法を示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Drawing、System.Windows.Forms、System.ComponentModel、System.Drawing.Printing、System.IO
このサンプルで使用されているクラス
Button、Page、Form、PageSettings、PrintDocument、Font、File、Component、StreamReader、Message、Stream、Style、EventArgs、Image、Control、Exception、MessageBox、String、EventHandler、Graphics、PageSetupDialog、Container、PrintPreviewDialog、PrintDialog、PrintEventArgs、StringFormat、Icon、Thread、Brushes、Application、Brush、PrintPageEventArgs
SimplePad サンプル
このサンプルでは、Windows フォームに用意されている印刷機能をすべて使用するメモ帳形式のアプリケーションを示します。
オンラインのサンプル ドキュメントへのリンク
オンラインのサンプル ソース コードへのリンク
このサンプルで使用されている名前空間
System、System.Windows.Forms、System.Drawing、System.ComponentModel、System.IO、System.Collections、System.Drawing.Printing
このサンプルで使用されているクラス
Menu、Form、MenuItem、File、Page、EventArgs、Font、Button、EventHandler、FileDialog、Component、Panel、Style、PageSettings、Message、String、MessageBox、StatusBar、Stream、Control、TextBox、PrintDocument、StatusBarPanel、Container、RichTextBox、Object、StringReader、FileInfo、Type、Icon、DataObject、Graphics、FileStream、PrintDialog、DataFormats、PropertyGrid、Clipboard、Convert、Exception、FileSystemWatcher、PageSetupDialog、SaveFileDialog、OpenFileDialog、Margins、MainMenu、FontDialog、StringFormat、Directory、PrintPreviewDialog、Application、PrintPageEventArgs、Path、Thread、CancelEventArgs、FileSystemEventArgs、PrintEventArgs、Brush、TypeConverter、Help、Brushes、Array、FileSystemEventHandler、Console、TypeConverterAttribute、OpacityConverter、SystemColors、Attribute