We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Diagram header and footer

Thread ID:





56023 Feb 8,2007 03:45 PM UTC Feb 13,2007 01:54 AM UTC WinForms 4
Tags: Diagram
Lan Mo
Asked On February 8, 2007 03:45 PM UTC


I want to add Header and footer to the diagram when the diagram is Print preview and Print.

The header and footer should appear in all pages with multiple lines of Rich Text formatting.

Do you have any sample code for reference?

Thanks in advance.


J.Nagarajan [Syncfusion]
Replied On February 8, 2007 04:50 PM UTC

Hi Lan,

Yes, you can add header and footer to the diagram by using Header Footer dialog. We have this functionality in our Printing Sample. It is located in (C:\Program Files\Syncfusion\Essential Studio\\Windows\Diagram.Windows\Samples\Quick Start\Printing). This sample shows the use of the prebuilt Header Footer, Page Setup and Page Border dialogs for configuring the respective attributes.

Please kindly refer to it and let me know if you have any questions.

Thanks for using Syncfusion product.


Administrator [Syncfusion]
Replied On February 8, 2007 09:40 PM UTC

Thanks for help. This sample is helpful.

I try to adjust the header/footer width according to the page setting (Landscape or portriat, and the Left/right margins). I mean whenever you change page settings, the header/footer width should automattically be set to page size. I cannot find this Auto-Size feature. So I want to use code to do that.

Please see my attached sample Printing_2003.sln. in SetHeaderFooterPageBorder(), I use this line to set header/footer width, but it does not work.

//????? This line does not work to adjust the header with fitting the page width

You can use 'Page Setup' menu to change 'Portriat' to 'Landscape' and the Left/right margins, then Print Preview to see the Header/Footer.



Administrator [Syncfusion]
Replied On February 9, 2007 04:01 PM UTC

I just noticed another issue in my previous email's sample .

when PrintPreview idsplays, the page border line is not completely drawn. when you resize the window or Maximum the window, then the page border line diaplays completely.
It looks like need some code to refresh the PrintView window.

Any idea?


J.Nagarajan [Syncfusion]
Replied On February 13, 2007 01:54 AM UTC

Hi Lan,

Could you please follow up the incident : 31730.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon