I followed you advice and made a script to open a dialogbox for select the file to attach on onChange event. But the problem is..
My script only gets his file and returns the full path. I don't know how I can get this file and put its on RTF and check if its a .pdf file or not, with my code.
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim dataDir As String
Dim files As Variant
Dim windowTitle As String
Dim filters As String
dataDir = session.GetEnvironmentString("Directory", True)
files = ws.OpenFileDialog(False, windowTitle, filters, dataDir)
If Isempty(files) Then
GetSingleFileName = ""
Elseif Not Isarray(files) Then
GetSingleFileName = Cstr(files)
GetSingleFileName = files(Lbound(files))
Attach only .pdf doc LS (Gabrielle R Cou... 19.Dec.12)
Feedback response number WEBB935QFW created by Gabrielle R Coutinho on 12/19/2012
. . Onchange event (Karl-Henry Mart... 19.Dec.12)
. . . . DialogBox but.. (Gabrielle R Cou... 19.Dec.12)
. . . . . . Left$ perhaps? (Karl-Henry Mart... 20.Dec.12)
. . . . . . . . Thanks you (Gabrielle R Cou... 20.Dec.12)
. . . . . . . . . . Expanded class (Karl-Henry Mart... 21.Dec.12)