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. Image for the cookie policy date
close icon

Footers only on certain pages?

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.


2 Replies

AN Annoymouse 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.



MW Melba Winshia Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon