0
我想在一個程序中打印一個組合框的所有內容,編號。使用PrintDocument打印所有項目的組合框
ComboBox1內容:
Yes
No
Maybe
No Opinion
到目前爲止我的代碼爲PrintDocument1:
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
Dim horizontalPrintPosition As Single
Dim verticalPrintPosition As Single
Dim PrintFont As New Font("Arial", 12)
e.Graphics.DrawString("Info from ComboBox1 would go here", PrintFont, Brushes.Black, horizontalPrintPosition, verticalPrintPosition)
End Sub
例如,所需的輸出將是:
1. Yes
2. No
3. Maybe
4. No Opinion
謝謝!
您發佈的代碼似乎與您的問題沒有關係。你有什麼試圖打印編號的版本? http://whathaveyoutried.com/ – ForceMagic