I have my standard form, this prints on 2 x pages, I have created a button so that the user can click on it and it will print the form, along with this I want it to print our standard terms and conditions, which is in a JPEG format - I don't want to include this anywhere on the form, the image name is STC.jpeg, how can I do this to print my normal form as well as this attachment if I could call it that way!
Here's the lotus script code for my button:
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim note As NotesDocument
Dim tmpDoc As NotesDocument
Set uidoc = workspace.CurrentDocument
Set note = uidoc.Document
Set db = session.CurrentDatabase
Set tmpDoc = New NotesDocument(db)
tmpDoc.Form = "ABCD"
Set uidoc = workspace.EditDocument(False, tmpDoc)