Page 1 of 1
Help with Exporting Chart As An eMail
Posted: Sun Nov 05, 2006 11:47 pm
by 9343745
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
Posted: Mon Nov 06, 2006 3:25 pm
by narcis
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?
Posted: Mon Nov 06, 2006 8:48 pm
by 9343745
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
Posted: Mon Nov 13, 2006 2:41 pm
by Pep
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 ?
Posted: Tue Nov 14, 2006 2:23 am
by 9343745
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
Posted: Tue Nov 14, 2006 6:48 am
by Marjan
Hi, Mike.
You might try checking the TeeExport.pas unit, especially the InternalTeeEmailFile routine which actually calls the MapiSendMail routine.
Posted: Tue Nov 14, 2006 8:17 am
by 9343745
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