Bildr - Feature Request: Avoid API Calls - Solution
I have mmodified the FileDialog function in (ImportPicture) Agent to avoid the use of API. The used API is for Windows only. Therefore you cannot import pictures on Linux or Mac.
The modified function uses pure Lotusscript and is platform independent
Function FileDialog(path As String) As Variant
Dim filename As Variant
'added 03-Mar-2010, Ulrich Krause
'No API used so the code will be platform independent
Dim filter As string
Dim workspace As New NotesUIWorkspace
filter = "All Files|*.*|JPG|*.JPG|"
filename = workspace.OpenFileDialog( True ,"Select files" , filter )
'replace original code
'FileName = FileOpenDialog(path, "", "JPEG-Files|*.jpg;*.jpeg;*.jpe", "", "Choose the pictures to import")
FileDialog = FileName
End Function
Taken Actions by OwnersNo actions have been taken yet.