1

Using the Autonomy Interwoven products Desksite or Filesite, it is possible to drag a document out of the application onto the desktop, which creates a .NRL file.

This file contains metadata including the name of the Interwoven server, the document id, version of the document etc.

Assuming we have a reference to an existing IManage.IManDocument object, is it possible to generate one of these nrl files programmatically via the SDK?

John Sibly
  • 22,782
  • 7
  • 63
  • 80

1 Answers1

3

Sure - this is simple. Here is a basic C# function that will do just this, with the IManDocument object named aDoc:

TextWriter nrlCreator = new StreamWriter(fileName, false);
try
{
    nrlCreator.WriteLine(string.Format("{0}\n{1}",
                         aDoc.Database.Session.ServerName, aDoc.ObjectID));
    if (SLSettings.CopyLinkToLatestVersion)
    {
        nrlCreator.WriteLine("[Version]");
        nrlCreator.Write("Latest=Y");
    }
    nrlFiles.Add(fileName);
}
finally
{
    nrlCreator.Close();
}
John Sibly
  • 22,782
  • 7
  • 63
  • 80
Ryan from Denver
  • 871
  • 9
  • 16
  • Thanks Ryan. This is almost identical to what I ended up doing. My only slight concern was that I noticed that if you have the web interface installed (for viewing documents outside the company) then iManage also puts a URL into the NRL file. However this is not a requirement for this particular client. – John Sibly Jul 21 '10 at 08:53