Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hello all,

I am new to VB.NET but been trying to write a code for PrintDialog as seen below

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

But been getting PreparedPrintDocument not declared.What could be wrong please?

Edited by PlausiblyDamp

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...