Navigation:  DominoPDF > Sample Code > Calculating URL's >

DominoPDF - Calculating Notes Document

Previous pageReturn to chapter overviewNext page

Many times the URL which is passed to DominoPDF needs to be "built" in LotusScript code.

The examples below demonstrate techniques for meeting this requirement.

URL for Notes Document

The URL for a Notes document can be built by referencing the NotesDocument.UniversalID property.

By using the host and database examples above a URL for a document can be built.

For example;

Dim session as New NotesSession

Dim oDB as NotesDatabase

Dim oDoc as NotesDocument

...

Set oDB = session.Current Database

sHost = "http://localhost/"

sDBPath = GetDBPath(oDB)

...

sURL = sHost & sDBPath & |/Contacts/| & oDoc.UniversalID & |?OpenDocument|

Contacts in the code above refers to a view name which contains the document.