System.Windows.Printing
2. 建立 PrintDocument
3. 建立對應 Event
- BeginPrint
- EndPrint
- PrintPage - e.PrintVisual (指定列印目標物件), 確認 e.HasMorePages (是否有多頁)
Print("MyDocument")
Dim str() As String = arrList.ToArray(GetType(String))
string[] strings = (string[])arrList.ToArray(typeof(string));
byte[] bytes = (byte[])System.ComponentModel.TypeDescriptor.GetConverter(bmp).ConvertTo(bmp, typeof(byte[]));