Page 1 of 1

ImageView Printing - Header and Footer

Posted: Sun Feb 19, 2012 8:22 am
by neilcorbett
Any suggestions how to add a header and footer to the printed pages of the ImageView / ImagePrintDocument control.

Re: ImageView Printing - Header and Footer

Posted: Tue Feb 21, 2012 2:07 pm
by Alex
Hello Neil,

You need to add a header and footer in the handler of the ImagePrintDocument.PrintImage event:
  • clone image received in the handler of the ImagePrintDocument.PrintImage event
  • increase canvas of image using the ResizeCanvasCommand command
  • add (draw) header and footer on the image
  • send image to printer
Best regards, Alexander