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 Database
The URL for the Notes database can be calculated from the NotesDatabase.FilePath property and a comprehensive function is provided below to determine the path.
Function GetDBPath(db As notesdatabase)
'check to see if the database is in a directory and swap the slash directions
Dim tmpPath As String
If db.Server = "" Then
tmpPath = Mid$(db.FilePath, Instr(1, Ucase(db.FilePath), "DATA\")+5, Len(db.FilePath))
Else
tmpPath = db.filepath
End If
Do While Instr(tmpPath,"\") > 0
tmpPath = Left$(tmpPath, Instr(tmpPath,"\")-1) + "/" + Right$(tmpPath,Len(tmpPath)-Instr(tmpPath,"\"))
Loop
'check and see if there are any embedded spaces and replace them with +
Do While Instr(tmpPath," ") > 0
tmpPath = Left$(tmpPath, Instr(tmpPath," ")-1) + "+" + Right$(tmpPath,Len(tmpPath)-Instr(tmpPath," "))
Loop
GetDbPath = tmpPath
End Function