About This Code
Brief Description:
Modify Header / Footer items via Lotusscript ( and API )
Contributor:
Ulrich Krause
Category:
C/Cpp, Lotusscript
Notes Version:
R6.x, R8.x, R7.x
Last Modified:
05 Mar 2010
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
The application contains a class "NotesDocumentHeader" to Get / Set the properties of Header and Footer items in a Notes Document.
Header / Footer items are of type Richtext and you cannot modify them directly using standard LotusScript.
I' ve put together all the necessary code and wrapped the API calls into a class to achive the goal. The class works on Windows and Linux. Mac support is possible but I have no Mac to test with.
In addition the application contains code to get the size ( and other properties ) of embedded images in a richtext item. The code is an example to show how to access Notes RichText items on the CD Record level using LS2CAPI techniques.
The application is used as a sample database on EntwicklerCamp 2010, 10-Mar-2010, Gelsenkirchen, Germany
Usage / Example
See the actions in the All Documents view for sample usage.
Code Attachments