標題:
vb.net 2005 問題
發問:
我在vb.net 2005 內有一張form , 有一個datagridview和一個button, 我想將按button後, 就能列印datagridview 內的內容我段code Dim WithEvents doc As System.Drawing.Printing.PrintDocument Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click doc = New System.Drawing.Printing.PrintDocument... 顯示更多 我在vb.net 2005 內有一張form , 有一個datagridview和一個button, 我想將按button後, 就能列印datagridview 內的內容 我段code Dim WithEvents doc As System.Drawing.Printing.PrintDocument Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click doc = New System.Drawing.Printing.PrintDocument doc.Print() End Sub 但什麼也印不到,請那裏出錯
最佳解答:
以下的範例應可幫到閣下, http://www.xmlfox.com/print_datagridview.htm 如解答到閣下問題, 煩請負評以下自問自答用戶, http://hk.knowledge. yahoo.com/my/profile _answer_best?show=HA 00005994&cp=10&a mp;a mp;amp;a mp;tp=89&
此文章來自奇摩知識+如有不便請留言告知
其他解答:
留言列表