Automatic NDL creation tool

I’m looking for a tool or technique to automate the creation of .NDL files. Ideally, when looking at any document in any database, I’d like to be able to click a toolbar button and have the system create the .NDL file on disk, open a new Outlook message, and attach the .NDL file. I can handle the Outlook automation, but I’d like to know if there’s a tool/library that will handle the creation of the .NDL file for me.

P.S. I already know about Genii Software’s Rich Text LSX.; my company wontt spring for a product just to add this capability. Sorry, Ben!

Subject: Actually, you are in luck

I have just been writing a freebie tool to do just this (for a presentation I am doing next Tuesday in Germany). Drop me a line and I’ll send you a copy.

Subject: automatic ndl creation tool

Do you still have this tool. It looks like it might be something I am trying to re-create.

Subject: RE: Actually, you are in luck

Hi,

Came across this post searching for how to create a ndl file attachment to send to an Outlook User.

From what I read your product CoExist will do that, but unfortunately we do not have the budget to do that.

Can you send the “freebie tool” that is mentioned in this post to

wm_bradford@hotmail.com

Thanks and Regards

Bill Bradford

Subject: RE: Actually, you are in luck

In case you don’t get a response to this old thread, here’s the crude technique I use in Windows. The user selects the document, uses Edit, Copy As Link, Document Link, then clicks on the smarticon I provide. The smarticon calls a VBS file via CScript (passing to it the documentunid) which then invokes Notepad, pastes the doclink then save it as an NDL file using the docid for the filename. The VBS code is below

Dim objShell, objArgs

Dim fso, f1, sFile

Set objArgs = WScript.Arguments

sFile = objArgs(0)

Set fso = CreateObject(“Scripting.FileSystemObject”)

Set f1 = fso.CreateTextFile(sFile, True)

f1.Close

Set objShell = CreateObject(“WScript.Shell”)

objShell.Run "Notepad.exe " & sFile, 9

WScript.Sleep 500

objShell.SendKeys “^V”

WScript.Sleep 500

objShell.SendKeys “%FS”

WScript.Sleep 500

objShell.SendKeys “%{F4}”

MsgBox sFile & " created"

Subject: ignore it, posted nonsense

didn’t now notes takes ndl-files as input. i think you found a solution already in nd5-forum?

i’m a bit confused - what do you mean by

putting ndl to disk? as for as i know, ndl

stands for notes document link?

do you mean lnk-files? if so, that’s probably a

hard job - i’ve taken some looks, didn’t

manage to find documentation about structure

(beside some cryptic entries in msdn header

files).

maybe they contain some application specific

information, so that there’s no real standard

lnk-format. if that’s true you would have to

reverse engineer how notes writes them (which

for shure can be done).

have a look at the format (e.g. using

hexeditor) , maybe it works if you use one as

template (that has been created in ui) and

change only values that are replicaid, noteid,

unid, whatever?

Markus Seitz

markus.seitz@icodex.com

Subject: Duplicate Post

http://www-10.lotus.com/ldd/46dom.nsf/DateAllFlatweb/f3bb6dc24799633085256fa80056cc81?OpenDocument

Subject: you’re right, it was not the first time i posted nonsense:)