Page header and footer problem

  • We're generating a PDF-document from 2 RTF-documents, one containing the page header and footer and the other containing the text part.

    The code we're using looks like this:

    rtfCtrl.LoadRTF(@"C:\tmp\pageheaderfooter.rtf");
    rtfCtrl.AppendRTF(@"C:\tmp\text.rtf");
    rtfCtrl.Export(@"C:\tmp\out.pdf");

    For some pageheaderfooter files the page header and page footer is ignored in "out.pdf". This behaviour seems kind of randomly to us.

    Is this a known problem or is it something we need to know to understand why this is happening?

    Regards
    Pär

    • Offizieller Beitrag

    >> For some pageheaderfooter files the page header and page footer is ignored in "out.pdf". This behaviour seems kind of randomly to us.


    I woukd expect that the loaded RTF overwrites the header/footer.

    The new interfaces (Memo.LoadFromFile) support more features when loading a file (format string: "RTF-onlybody")

    Can you use the new COM interfaces ?

    They also allow the creation of header/footer texts "on the fly", basically everything what the word processor TextDynamic does.

    Regards,
    Julian Ziersch