Executes the print script associated with the action type code of the document. If no action type or script has been assigned or the user does not have the appropriate permissions, the script will not be executed. The script must meet certain requirements, see:
The action type scripts within Isah are being used for document actions. This requires the user to have sufficient rights so the user only views documents that are intended for him. There are several possible actions:
- Modify (Open)
- Read (View)
- Print (Print)
In the Basic data documents folder document types can be created to which an action type script can be linked. Linking a type to a document also immediately establishes which action type scripts apply to the document.
The scripts for opening, viewing or printing a document must meet certain conditions. In order for the script to run through the Document Link, the script code must contain a function with a fixed name and input parameters.
- Change
- Function name DocLinkOpen
- Parameters DocId and DocPathName
- Read
- Function name DocLinkView
- Parameters DocId and DocPathName
- Print
- Function name DocLinkPrint
- Parameters DocId and DocPathName
Sample Code
The code below is an example of opening a document with a script from Isah.
Sub DocLinkOpen(DocId, DocPathName)
Dim ShellObj
‘’ Check whether a file name is valid.
if DocPathName = "" then
MsgBox "No file name entered", vbOKOnly+vbCritical,, ”Documents"
Exit Sub
end if
Set ShellObj = CreateObject("WScript.Shell")
ShellObj.Run """" & DocPathName & """"
Set ShellObj = Nothing
End Sub