Hi,I’m trying to put information into the footer of a document. The only standard way seems to be using the Forms “Window Title” and reference that in the footer settings in the form, but this looks terrible (2 lines of text with contact information).
After a some research I found out that I can override the default Header/Footer on document level just in document properties and this creates the $Header and $Footer fields. These fields are richtext and the structure stored in them are CDHEADER and CDFOOTER. I figure I need to set these fields using the Notes C API, by defining the CDHEADER/CDFOOTER structures in LS and declaring the necessary functions from the C API.
So my question is - has anybody done this before? And if so can he/she provide me with an example? I do not have alot of expirince in in C.
Subject: $Header and $Footer
I have done it (and it is even available with the SetHeader and SetFooter methods in our Midas Rich Text LSX), but it is also possible to use a formula of &w and set the Window formula to what you want. That isn’t enough control for everyone, but you should decide whether it is enough for you before worrying about either the C API or a third party product.
As for the C API way of doing it, you are on the right track. You just need to fill in the CDFOOTER structure and use NSFAppendItem (if you are not on Windows platform, you will also need to use ODSWriteMemory to get the stuff into canonical format, which is fancy talk for “squished together like on Intel platforms with 1 byte alignment”).
Subject: RE: $Header and $Footer
Hello,
Tell me , what have you done ?
Did you succeeded on putting graphical header and footer on a notes document ?
If so , some more help an guiding would be much appreciated.
Tx
Subject: $Header and $Footer
Hi Arnar,
I’m struggling also with header/footer:
We should send the header/footer in emails (faxes sent as emails) - but I do not find any method to get the content of the $header/$footer fields. Do you succeed to get the content of those fields, in notes?
Uwe
Subject: $Header and $Footer
I actually have created a subform, and place a bunch of passthrough HTML in it, and then insert it based on a formula. That seems to be the easiest way to accomplish this.