Printing images

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have a picturebox on a form. if i want to print, i press a print button.
it doesn't print, though. this is because i don't know any code for printing.
does anyone know any printing code?
 
public bool Draw(IPrintEngine pe,
float xPos,
float yPos,
Graphics g,
RectangleF pageRect,
bool isSimulation)
{
Bitmap myBitmap = new Bitmap(this.Image);

RectangleF destRectangle = new RectangleF(new
PointF(xPos+this.horizontalMargin,
yPos+this.verticalMargin),
this.Size);
if (!isSimulation)
{
g.DrawImage(myBitmap,destRectangle);
}
return false;
}


Regards,
Jeff
 
Back
Top