EmailSettings.ReportFormat
Delphi 2009 and RBuilder 11.05
If I set ppReport.EmailSettings.ReportFormat := PDF and use MAPI to create
an email message, when the message is sent, the attached report is in PDF
format.
However, if I use Indy and the built in email editior included with
ReportBuilder, the email attachment is in .DAT format. Is this an error in
RBuilder or am I missing something?
TIA
John
PS This is a continuation of an earlier post 8-4-2009, email-OnSend event.
If I set ppReport.EmailSettings.ReportFormat := PDF and use MAPI to create
an email message, when the message is sent, the attached report is in PDF
format.
However, if I use Indy and the built in email editior included with
ReportBuilder, the email attachment is in .DAT format. Is this an error in
RBuilder or am I missing something?
TIA
John
PS This is a continuation of an earlier post 8-4-2009, email-OnSend event.
This discussion has been closed.
Comments
This is caused by a bug in the Indy mail handling, the file is still PDF
format but the file name comes out wrong. You can either update your Indy
components to a later version or switch to Synapse.
I went for Synapse instead and it works well.
There was a previous thread related to this issue somewhere but I couldn't
find it.
Regards, Paul.
In searching Synapse TCP/IP I find Ararat Synapse, a freeware toolkit that
is only functional with Delphi 7 and below. I am using Delphi 9.
Regarding Indy10 which comes with Delphi 2009, I do not find on the
Embarcadero Delphi Developer Network an update to the Indy10 components.
Indy.fulgan.com appears to have the most recent update which is Friday
September 19, 2008. Unfortunately, there are several references to
difficulty with its installation in Delphi 2009, and I do not know if the
update would address my problem. Does anyone have additional information
regarding this matter?
TIA
John
Apparently, Delphi 3-7, Delphi 2005-2006, C++Builder, Kylix 1-3 or
FreePascal 2.0.4 are listed as requirements but I have tried it under D2009
and RB 11.05 without any problems.
I believe the code is all unicode aware so I don't know what else you might
be thinking of regarding using it under 2009.
http://synapse.ararat.cz/files/synapse.zip
The later versions do address the issue of incorrect attachment file naming
but since they are only availabe as a snapshot release of the current
development code, I was wary of using it and breaking other existing code,
hence I tried Synapse.
http://www.indyproject.org/Sockets/wizard/DownloadWizard.EN.aspx
Regards, Paul.