Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
705
Add header and footer in Print preview
posted

Hi

I am using UltraDayView and want to add header and footer image duting print.

When i am adding image and BackColor in header it is not showing image in print preview but only color is updated in header.I am using below code...

 

    Infragistics.Win.AppearanceBase headerApp = ultraSchedulePrintDocument1.Header.Appearance;   

headerApp.Image = System.Drawing.Image.FromFile(imagePathHeader);

Parents
  • 71886
    Offline posted

    Hello avlindia,

    You could use the 'PageHeaderPrinting' for that, please take a look, try it and let me know of the result:

            private void ultraSchedulePrintDocument1_PageHeaderPrinting(object sender, Infragistics.Win.Printing.HeaderFooterPrintingEventArgs e)

            {

                e.Graphics.DrawImage(System.Drawing.Image.FromFile(imagePathHeader), new Point(0,0));

            }

Reply Children
No Data