Help with Exporting Chart As An eMail

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Help with Exporting Chart As An eMail

Post by madup » Sun Nov 05, 2006 11:47 pm

I am having trouble when trying to export a chart as an email.
The error message is Sending of message failed.
There was an error attaching TeeChart.emf. Please check if you have access to the file.
An email message is generated, the problem occurs was you attempt to send the message. I am using Win XPPro SP2.
Maybe I am missing a permission: If so what could it be ?
Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Nov 06, 2006 3:25 pm

Hi madup,

It works fine for me here using TeeChart Pro v7.07 VCL. Which TeeChart version are you using? Do you have an e-mail account, which can send the message, set up on that machine?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Post by madup » Mon Nov 06, 2006 8:48 pm

I am using Pro v7.08, and have an account that sends email.
When I click send it generates the email, searching further, I cannot find the attachment. If I place a file with the correct nane in the location stated in the attachement, it works.
I am using Netscape as the email client. Another thing, when I click Save it defaults to My Documents of the current user. The email thinks the attachment is in :
C:\Documents and Settings\madup\local settings\temp.
If I place a file in the location after the email is generated after sending it will
delete the file.
If I place a file before clicking send, it will delete the file before ??, the email is generated and not replace it
Thanks
Mike

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Nov 13, 2006 2:41 pm

Hi Mike,

maybe the problem is the email client (in your case NetScape). This feature has been tested only in systems with standard Mail API installed like MS Outlook, Outlook Express,..
Could you please check if the same problem happens in your machine using Outlook or Outlook Express ?

madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Post by madup » Tue Nov 14, 2006 2:23 am

Hi Pep
I don't use Outlook, however I tried the same code on a Notebook with
Win ME and an older version of Netscape, and I was able to send the chart as an email, so Netscape has the ability to execute the code successfully.

Again if I attempt to send a chart , even via the demo app, if I
Click Send
wait for the message to populate
copy a file with the proper name to the temp location
place an address in the email
Click Send
The message will process, then delete the file I placed in the temp location.
It just never seems to place a file in the temp folder.

Which unit in the soucre actully builds the message and calls the API Logic ?

Since Win ME works, it just seems to be a problem with Win XP Pro and Netscape 7.2
I'll try to further review the source, to understand where this fails. So any pointers to the correct unit would be great
Regards
Mike

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Nov 14, 2006 6:48 am

Hi, Mike.

You might try checking the TeeExport.pas unit, especially the InternalTeeEmailFile routine which actually calls the MapiSendMail routine.
Marjan Slatinek,
http://www.steema.com

madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Post by madup » Tue Nov 14, 2006 8:17 am

Hi Marjan
I had gooten that far and at the moment, couldn't find that unit, then I got busy with another project. I will start again later this week and will post my findings
Regards
Mike

Post Reply