About This Code
Brief Description:
Dump note to text file
Last Modified:
29 Jan 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
This tool takes the nsfdump sample application from the C API, and turns it into an add-in menu, available off the Actions menu. This allows you to dump any note from any database to a text file. This tool is built using the 8.5 version of the C API, however, it should be backwards compatible with previous versions of Notes. noteDump.zip contains the source for building this.
Usage / Example
Shut down notes. Copy nntdmp.dll into your Notes program directory. Edit your notes.ini file. Set the following variable:
AddinMenus=nntdmp.dll
If you already have the AddinMenus variable set, add nntdmp.dll, and separate entries with a comma:
AddinMenus=nqkrmn.dll,nntdmp.dll
Optionally, set these notes.ini variables. The first one displays a message box after the note has been dumped, specifying where the output file is located. The second one can be the path to a text editor to launch after dumping the note(s). In the example below, I have it opening the output file in notepad.
nsfdump_display_outputfile=1
nsfdump_launch_app=notepad
Code Attachments