.NET - new email attachments hidden Posted by Krzysztof M Jaworek on 4.May.10 at 08:56 AM using a Web browser
Category: Domino repositoryRelease: All ReleasesPlatform: Windows
We’re trying to create new email using .NET with Lotus Notes 8.5 populating all standard email fields etc as well as attaching a file (let’s say test.htm or test.txt).
Now the email does not get automatically sent but is being left open so user can verify email’s contents etc before sending.
Our problem is that there is no indication (e.g. icon) visible for the attached file while in edit mode (neither in body or in attachments field, which is hidden) - so the user can’t see whether there really is an attachment added or not. Once it’s sent or saved and re-opened the attachemt is visible in attachments field as normal.
Is there any method to make attachment (icon) visible in edit mode?
Here’s core of our code:
MOA = CreateObject(“Notes.NotesUIWorkspace”)
MyItem = MOA.ComposeDocument(, , “Memo”)
Call MyItem.fieldSetText(“EnterSendTo”, “test@abc.de”)
Call MyItem.fieldSetText(“Body”, “Hello World!”)
AttX = MyItem.DOCUMENT.CreateRichTextItem(“C:\test1.txt”)
EmbedObj = AttX.EmbedObject(1454, “”, “C:\test1.txt”)
Would you have any suggestions where the issue is or what method to use to make the attachment icon visible?