header and footer disappears when printing

  • Hey all!
    I have problems when I try to print from wprichtext to my printer - header and footer disappears. Maybe the problem is that I have used GetSpecialText to format individual header for all pages/last page. It works perfect in my TWPRichText editor - but not in printing mode.

    Is there something I have missed?

    Thanks in advance,
    Michael

    • Offizieller Beitrag

    Hi,

    You will need to place a breakpoint in your OnGetSpecialText to see what happens at print time.

    If you just loaded the text or modified it (mergetext) you will need a call to ReformatAll before the print. ReformatAll is not required when the text is displayed and printed from the editor as it is displayed.

    Julian

    EDIT: The problem is probably caused by the code in OnGetSpecialText. That code should not create or modify the header or footer, it should just select it. See other post.