Hello EveryOne ...
I want to Print a Group Box Content in a Window Form ... The Group box Contain PictureBox ,Text Box and Lables Every thing Seems To be working Fine But Still I cant get the print...Following is the code for Printing ...
public partial class Frm_VisitorDisplay : Form
{
private System.IO.Stream streamToPrint;
string streamType;
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
private static extern bool BitBlt
(
IntPtr hdcDest, // handle to destination DC
int nXDest, // x-coord of destination upper-left corner
int nYDest, // y-coord of destination upper-left corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
IntPtr hdcSrc, // handle to source DC
int nXSrc, // x-coordinate of source upper-left corner
int nYSrc, // y-coordinate
View Complete Post