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.

Differences between code, documentation

Thread ID:

Created:

Updated:

Platform:

Replies:

47305 Aug 2,2006 07:56 AM Aug 7,2006 10:20 AM Windows Forms 5
loading
Tags: PDF
Administrator [Syncfusion]
Asked On August 2, 2006 07:56 AM

On your own site at http://www2.syncfusion.com/library/pdfbase/HeadersAndFooters.html , I''m finding some issues with trying to have a different first page footer for a PDFLogicDocument.

1. IPDFSections don''t seem to have DifferentFirstPage member
2. The call to Add a paragraph should be HeadersFooters.FirstPageFooter.AddParagraph();
3. Nothing I seem to do will display a footer for me on the first page.

I need something so that I can have a footer on all my pages in the document (pages that may have multiple sections on them) as well as a different footer for the first page.

Dhivya K [Syncfusion]
Replied On August 2, 2006 11:23 AM

Hi Scott,
I was able to reproduce the issue. We are currently working on this. I will send you an update regarding this as soon as possible.
Regards
Dhivya.K

Administrator [Syncfusion]
Replied On August 2, 2006 02:58 PM

Please do. This is another critical feature for us and so we''ll be waiting.

Bhagya T [Syncfusion]
Replied On August 4, 2006 08:57 AM

Hi Scott,
Sorry for the confusion. This is not an issue; here is the sample code for doing it.

1.Use the following code for setting DifferentFirstPage member:

section.PageSetup.DifferentFirstPage = true;

2.Currently, the distance of the footer should be explicitly set in order to get the footer displayed. Use the following code to set the width of the footer:

section.PageSetup.FooterDistance = 50f;

Here is a sample for your reference:
SectionBreak.zip


Please take a look and let me know if you have any other questions.

Thanks,
Bhagya.

Administrator [Syncfusion]
Replied On August 4, 2006 09:37 AM

Does this work for only the first section on a given page? Even if I change "section" to "secondSection" in both the Header / Footer references and FooterDistance lines (moving it later in the code so that it compiles), I don''t see a footer in the resulting PDF.

Regardless we can make this code work for us, just curious. Thank you very much.

Bhagya T [Syncfusion]
Replied On August 7, 2006 10:20 AM

Hi Scott,
Thank you for your interest in Essential PDF.

1.When a different header and footer is to be set for the first page alone, the first section in the page is used for setting them.
2.For subsequent pages, the header and footer should be set for last section of the page.

Thanks,
Bhagya.

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.

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.

;