debeginin Posted November 24, 2009 Posted November 24, 2009 (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 November 24, 2009 by PlausiblyDamp Quote
Administrators PlausiblyDamp Posted November 24, 2009 Administrators Posted November 24, 2009 Do you have a method called PreparePrintDocument (or is it PreparedPrintDocument - both are mentioned in your question ) in your code somewhere? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.