0

Hi guys,

I need coding help in printing contents that are inside the groupBox only. I have a form with two groupBoxes, and would like to print contents on only 1 groupBox.

Thanks.

2
Contributors
5
Replies
15
Views
2 Years
Discussion Span
Last Post by Minimalist
0

You need to tell which controls are in your groupbox and what you want to print,
text, pictures buttons, button.names etc.

0

I need to print a picture, labels and textboxes. I need this contorls to be sent to a printer when i click the print button.

0

Below is my code for the print button, the problem is that when i click on the print button, all contents on the form prints.
------------------------------------------------------------
Private Sub btnPrintSalarySlp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintSalarySlp.Click
-------------------------------------------------------------------
PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
PrintDocument1.Print()
End If
End Sub

Edited by mbowenitj

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.