|
-
May 12th, 2005, 01:06 PM
#1
Thread Starter
Lively Member
Printing From Form . . . [RESOLVED - all by meeself!]
Ok...I'm getting close on this one, but there's something missing.
I have a form that's using a WebBrowser control (thanks Matt and Rob) to pull up a local html page and it's (eventually) going to insert logos, data, etc. to print reports, shippers, invoices.
Clicking on "Print..." in my menu brings up the usual print dialog correctly...clicking on "Print" in the print dialog brings up a message box that says "Printing Invoice - Page 1". So I'm pretty sure something's working up to that point, but I'm thinking no data is being sent to the printer.
For the time being, I am using google in the page just to work on the print functionality, and the printer fidgets a little, so it's getting at least a handshake, but nothing ever happens, no paper is even pulled down.
Here's what I have so far in my print code:
VB Code:
Private Sub InvoiceBrowser_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InvoiceBrowser.Enter
InvoiceBrowser.Navigate("http://www.google.com")
End Sub
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
'I'm missing something in here, I just know it.
PrintInvoiceDialog.ShowDialog()
PrintInvoice.Print()
End Sub
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
Me.Close()
End Sub
What else do I need to get the thing to actually print?
Thanks,
CP
Last edited by milkmood; May 13th, 2005 at 01:31 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|