mukulmukul
Member
- Joined
- Jun 21, 2009
- Messages
- 10
- Programming Experience
- Beginner
hi , i have a form , with autoscroll set to true
there are controls like picturebox, buttons, and labels on form . and all are locked.
the controls are such that the form has a scrollbar, i want to print the form with all the content on form .
on click to print button, following is the code i am using
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Button1.Visible = False
Button2.Visible = False
Button3.Visible = False
Button4.Visible = False
Button5.Visible = False
Button6.Visible = False
Label19.Visible = True
Label20.Visible = True
Label21.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
Button1.Visible = True
Button2.Visible = True
Button3.Visible = True
Button4.Visible = True
Button5.Visible = True
Button6.Visible = True
Label19.Visible = False
Label20.Visible = False
Label21.Visible = False
Label22.Visible = False
Label23.Visible = False
Label24.Visible = False
Label25.Visible = False
Label26.Visible = False
Label27.Visible = False
Label28.Visible = False
Label29.Visible = False
Label30.Visible = False
End Sub
i have used that printform powerpack with scrollable option.. but still i am getting the print with just the area visible on form..
what do i do .. please help
there are controls like picturebox, buttons, and labels on form . and all are locked.
the controls are such that the form has a scrollbar, i want to print the form with all the content on form .
on click to print button, following is the code i am using
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Button1.Visible = False
Button2.Visible = False
Button3.Visible = False
Button4.Visible = False
Button5.Visible = False
Button6.Visible = False
Label19.Visible = True
Label20.Visible = True
Label21.Visible = True
Label22.Visible = True
Label23.Visible = True
Label24.Visible = True
Label25.Visible = True
Label26.Visible = True
Label27.Visible = True
Label28.Visible = True
Label29.Visible = True
Label30.Visible = True
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
Button1.Visible = True
Button2.Visible = True
Button3.Visible = True
Button4.Visible = True
Button5.Visible = True
Button6.Visible = True
Label19.Visible = False
Label20.Visible = False
Label21.Visible = False
Label22.Visible = False
Label23.Visible = False
Label24.Visible = False
Label25.Visible = False
Label26.Visible = False
Label27.Visible = False
Label28.Visible = False
Label29.Visible = False
Label30.Visible = False
End Sub
i have used that printform powerpack with scrollable option.. but still i am getting the print with just the area visible on form..
what do i do .. please help