Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

emailing from the preview screen

edited December 2008 in General
RB 10.08 Delphi 7
I had this working (email button in previewer) ok using Outlook Express.
Loaded MS Office w/ Outlook, and it quit working. I un-installed Outlook
but that didn't help. I can mail manually using Outlook Express now so I
know Outlook Express is configured properly; however, using the icon on the
previewer, the hourglass blinks briefly and that's all.

For good measure, I added ppSMTPOutlook, ppPDFDevice to my uses statement
but that made no difference. Its like it can't find the default mail
client.

Any ideas?

Bill Skelton
Landmark Data Systems, Inc.


Comments

  • edited December 2008
    Hi Bill,

    Are you using Windows Vista? If so, you need to be sure Outlook is closed
    before running the MAPI plugin. There is a Vista issue (that has yet to be
    resolved by Microsoft) that causes an undefined error when trying to open an
    Outlook message via MAPI when Outlook is already open.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    Thanks for the reply Nico,
    Outlook is not loaded... its Outlook Express on a 2003 R2 Standard Edition
    Server accessed through a terminal server session.
    Outlook Express works fine, it just won't pull-up using RB email icon in
    preview.

    Bill

  • edited December 2008


    Check whether Outlook Express is configured as the default email client for
    the machine


    Remove ppSMTPOutlook. You want to use ppSMTPMapi. The Mapi plug-in supports
    any MAPI compliant email client - which includes OutlookExpress and Outlook.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited December 2008
    Outlook Express is the default email program.

    Any other suggestions, please?

    Bill

  • edited December 2008
    Hi Bill,

    We have not seen this behavior before. Have you tried using the email
    example in the main demo application? (Demo 110) Take a look at the
    following article on displaying the MAPI email errors returned by the client
    and let me know what error you are getting.

    http://www.digital-metaphors.com/rbWiki/Output/Email/How_To...Show_Email_Errors

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    Thanks Nico, but no help. I never get the email dialog screen.

    I assume that when clicking on the email icon, the program should create the
    PDF file, attached it to the mail client and display the email dialog. None
    of this happens. The hourglass flickers and then nothing.

    I can print to a PDF file on the desktop and then right-click on it and send
    it to an email receipient fine.

    Is there a PAS file that I can follow the execution of the program after
    clicking on the email icon?

    Thanks,
    Bill

  • edited December 2008
    Hi Bill,

    Once the email button is clicked inside the preview window, a TppEmail
    object is created, a report is added and the Send routine is called. The
    relevant files are ppEmail.pas and ppSMTPMAPI.pas.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.