Sending a report by e-mail

Posted by: j0k3rm4n on 4 August 2017, 5:58 am EST

  • Posted 4 August 2017, 5:58 am EST

    Hey folks...how are you?



    This is my current dilemma: Is it possible to have a procedure in a AR 2.0 Report in which I'd be able to export it and send it by e-mail (using outlook express, or something like that...)?

    I wouldn't need it to be a PDF file, but if I could only send it in a format recognizable somehow, it'd be great!!!



    I'd appreciate any help...thanks a lot!



    best regards,

    J0k3rm4n
  • Replied 4 August 2017, 5:58 am EST

    Thanks a lot, Ali - DD!!!



    Is there a procedure in which I could the same that those ones you showed me using an Outlook Express application?
  • Replied 4 August 2017, 5:58 am EST

    <div class="Section1"><font face="Arial" size="2"><span>You have several options to send a
    report via email. A very nice and easy-to-use library is vbSendMail. The one
    drawback of this library is that it doesn’t support encrypted smtp (SSL). If you
    cannot use this library because of this drawback, you can use:</span></font>
      <li class="MsoNormal"><font face="Arial" size="2"><span>Collaboration Data Objects :
      </span></font>Sending Email Using CDO and
      MAPI

      </p><li class="MsoNormal"><font color="black" face="Arial" size="2"><span>Microsoft MAPI
      controls 6: </span></font><font color="black"><span>Sending
      Email With MAPI Components in Visual Basic
      </span></font>
      </p><li class="MsoNormal"><font face="Times New Roman" size="3"><span>Using the </span></font><font face="Arial" size="2"><span>Outlook object model:
      </span></font><b><font face="Times New Roman"><span>How do I send an email using
      Outlook?
      </span></font></b>
      <font face="Arial" size="2"><span> </span></font></p>
    <font face="Arial" size="2"><span>No doubt there are other options to
    send email including third party controls. I’ve modified the sample from the
    devarticles using the MAPI controls to send a report in several attachments. I hope the resources above prove helpful if this application doesn't suit your needs
    </span></font></div>
    2006/10/SendMailMapi.zip
  • Replied 4 August 2017, 5:58 am EST

    <div class="Section1">

    <font face="Courier New" size="2"><span>Tecnova,</span></font>


    <font face="Courier New" size="2"><span>Can you share the code you
    use to open a new Outlook Express message and add the exported reports as
    attachments to it?</span></font>

    </div>
  • Replied 4 August 2017, 5:58 am EST

    I really don't know if Outlook Express has an OLE automation interface for you to start a new message. The MAPI controls uses underlying message subsystem of the machine and I think if you change the sample to suit your needs, it is as if you have created a new Outlook Express message and attached the report to it.

  • Replied 17 June 2020, 9:13 pm EST

    Good want to win money join at [url=https://www.sweepstakeskeys.com/www-walgreenslistens-com/]WalgreensListens Customer Survey [/url]
  • Replied 17 June 2020, 10:34 pm EST

    Best product deals at best price.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels