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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Footers only on certain pages?

Thread ID:

Created:

Updated:

Platform:

Replies:

69844 Nov 14,2007 03:08 PM UTC Nov 15,2007 10:19 AM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: PDF
Annoymouse
Asked On November 14, 2007 03:08 PM UTC

Hi Guys,

Again, jsut testing a few things out with your PDF product under ASP.NET

Im trying to add a footer to only certain pages. I have a method which I call [b]before[/b] adding the final two pages (the ones i do not wish to have a footer on) but as its a docuemnt wide change adding teh footer they are of course on everypage.

Is it possible to only have footers on cerain pages?


Thanks again.


Annoymouse
Replied On November 14, 2007 08:04 PM UTC

I used a little hack to get around this; I just used the page Graphics to draw a white line through where the footer is placed on the pages where needed.

Out of curisoty; is their a cleaner way to do this?

Thanks again.


Melba Winshia [Syncfusion]
Replied On November 15, 2007 10:19 AM UTC

Hi,

Thank you for your interest in Syncfusion Products.

Is it possible to only have footers on certain pages?

It is not possible to have footers for certain pages. But it is possible to have footers for odd number of pages or even number of pages or for all pages.

[C#]

//Add the footer template at the bottom of odd pages
doc.Template.OddBottom= footer;

//Add the footer template at the bottom of even pages
doc.Template.EvenBottom= footer;

Please refer the below sample to have footer on odd pages:

http://websamples.syncfusion.com/samples/PDF.Web/5.2.0.25/69844/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



CONFIRMATION

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.

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

;