OpenNTF.org - Dump note to text file
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Dump note to text file 
Rating:
Not Rated Yet 
Contributor:
Tim Parsons 
Category:
C/Cpp 
Type:
Debugging 
Document Release:
1.0.0 
Notes Version:
R8.x 
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
nntdmp.dll (252 Kbytes)
noteDump.zip (92 Kbytes)
 Comments

No documents found

 Add your comment!