Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Mail Report Button on Form

Discussion in 'Information Technology' started by DV, Jul 28, 2006.

  1. DV

    DV
    Expand Collapse
    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.
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News Armed Police Enter Sikh Temple In Birmingham During Protest - Daily Mail Breaking News Sep 12, 2016
    Sikh News Veteran Sikh Soldiers To Inspire Young - Malay Mail Online Breaking News Aug 1, 2016
    Sikh Gmail Calendar Questions and Answers Jul 5, 2016
    UK Daily Mail ISIS entrapment Breaking News Jul 7, 2014
    India India sets up elaborate system to tap phone calls, e-mail Breaking News Jun 20, 2013

  3. schasteen

    schasteen
    Expand Collapse
    Guest

    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.

    "DV" wrote:

    > 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.
    >
     
  4. jetro=)

    jetro=)
    Expand Collapse
    Guest

    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

    "DV" wrote:

    > 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.
    >
     

Share This Page