Hello All,
I have placed a PrintDocument item on my form and linked it to a Button.* To start with I just got a black page but after some seaching the forums for help I've managed to get the form to print out.* Great!!However to do this I had to duplicate ALL my code that creates the screen form into the PrintDocument1_PrintPage sub.
This seems a vast amount of duplication. I tried to 'CALL' the Private Sub for the code Call PictureBox1_Paint()but only received the error;Code:Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, _ ByVal e As System.Drawing.Printing.PrintPageEventArgs) _ Handles PrintDocument1.PrintPage All code placed here End Sub
"Argument not specified for parameter 'e' etc.
Is it possible to print a form window another way?
Rgds,
Tarablue


Reply With Quote