I am new to vb.net but wrote this code for a printdialog
but been getting
Name 'PreparePrintDocument' not declared
What could be the trouble pleasssssssssssse?
VB.NET:
Private Sub PrintToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripMenuItem.DoubleClick
PrintDialog1.Document = PreparePrintDocument()
'PrintDialog1.ShowDialog()
If PrintDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
PrintDialog1.Document.Print()
End If
End Sub
Name 'PreparePrintDocument' not declared
What could be the trouble pleasssssssssssse?
Last edited by a moderator: