Jason Sas 27.Apr.09 02:16 AM a Web browser Domino Designer 6.5.6; 6.5.5 FP3; 6.5.5 FP2; 6.5.5 FP1; 6.5.5; 6.5.4 FP3; 6.5.4 FP2; 6.5.4 FP1; 6.5.4; 6.5.3 FP2; 6.5.3 FP1; 6.5.3; 6.5.2 FP1; 6.5.2; 6.5.1; 6.5 Windows XP
I have a piece of script in which part of it grabs the latest response document from a parent document and then and assigns a number to a field. I'd like to also print the document at the same time, but from what I can see the print option is only available from 'uidoc'. Is there a way to convert the notes 'document' into a 'uidocument' in the script and then use the print function? I want to do this all 'behind the scenes' without any user interaction. Here is an example of my script below:
If BriefExists(doc, BriefDocument) Then
If Not BriefDocument Is Nothing Then
If BriefDocument.CurrentUser(0) = "" Then
Set BriefItem = BriefDocument.ReplaceItemValue("IndexNumber", IndexNoString)
Call BriefDocument.Save(True, True)
Messagebox "A user is editing brief: " + BriefDocument.Topic(0) + " " + BriefDocument.Subject(0) + Chr$(13) + Chr$(13) + "Please get the user to edit and close the brief before re-running the index" , MB_ICONINFORMATION, "Brief locked"