Printing a Form with C#

  • Thread starter Thread starter bernden
  • Start date Start date
B

bernden

Would anyone know how to print a form (using Visual C#) that contains a
pictureBox and several textBox(s) given the following generic description ?
Form = frmMain
picturebox = pbxMainImage
textBox(s) = txtName
txtAddress
txtPostalCode

In the past, I have used to clipboard to achieve this task, but there is
were too many possibilities for distortion based upon the user's screen
resolution.

Any and all suggestions are welcome.

bernden
 
The general consensus on this matter is that if you are printing under WinForms
and
you aren't willing to use BitBlt or the clipboard, then you need to format your
data
in report rather than WYSIWYG format. When printing you have full access to a
System.Drawing.Graphics instance and so can properly print images and text with
relative ease.
 
* "bernden said:
Would anyone know how to print a form (using Visual C#) that contains a
pictureBox and several textBox(s) given the following generic description ?
Form = frmMain
picturebox = pbxMainImage
textBox(s) = txtName
txtAddress
txtPostalCode

In the past, I have used to clipboard to achieve this task, but there is
were too many possibilities for distortion based upon the user's screen
resolution.

I would draw it onto the printer using 'System.Drawing.Printing'.
Taking a screenshot will reduce quality of the output.
 
Back
Top