急!麻烦帮忙看看是什么问题!打印DatagridView中的数据出来只有表格没有数据!
Private Sub print_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles print.Click
PrintDocument1.Print()
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
Dim myPaintArgs As New PaintEventArgs(e.Graphics, New Rectangle(New Point(0, 0), Me.Size))
Me.InvokePaint(DataGridView1, myPaintArgs)
End Sub
[解决办法]
哦。。。我没试过。
要不就轮选各个cell,再drawString好了。。。