Mail Report Button on Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've added a Mail Report button to a form that generates an attachment with
an XLS extention even when I pick Rich Text Format from the prompt. In
addtion the XLS file that is created contains gibberish.

To add to the confusion, the button works for some users and not others.
Any ideas? Our email system is Lotus Notes 6.5.2. The button's worked fine
for the past 4 months, and we've just recently encountered the problem. Thank
you in advance.
 
If you are exporting a file and forcing it to be saved as a .xls then you
need to make sure the export format is excel.
 
try this ihope this will help you

Set {OBJECT:AppOutlook} = GetObject(, "Outlook.Application")
If {OBJECT:AppOutlook} Is Nothing Then
Set {OBJECT:AppOutlook} = CreateObject("Outlook.Application")
End If

Const olMailItem = 0
Set {OBJECT:MailItem} = {OBJECT:AppOutlook}.CreateItem(olMailItem)
With {OBJECT:MailItem}
.To = {STRING:To}
.Subject = {STRING:Subject}
.Body = {STRING:Body}
' .Attachments.Add AttachmentArray(j)

'Decide what to do with the mailitem
' .Send
' .Display
' .Save 'New messages always save in Drafts, regardless of what folder
you use for the Items.Add method.
End With
 
Back
Top