private void btnPrint_Click(object sender, System.EventArgs e) { arv.Document.Name = System.Windows.Forms.SystemInformation.UserName; arv.Document.Print(); }
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click arv.Document.Name = System.Windows.Forms.SystemInformation.UserName arv.Document.Print() End Sub