views:

24

answers:

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?

+1  A: 

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();
                    }
Ryan from Denver
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