Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: AlphaImageLoader?
| Subject: | Re: AlphaImageLoader? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 13 Feb 2008 10:38:27 |
"Richard Bibby" <richard.bibby@profdoc.com> wrote in message
news:47b2f7f5$1@newsgroups.borland.com...
> I am unable to change the html because is it created by Crystal Reports
The HTML must be changed in this situation in order to work in emails. Yes,
you can change it. You will just have to parse/update the HTML yourself
after Crystal Reports generates it. You already have the HTML loaded in
memory before you give it to the TIdMessage.
> it does not have the cid syntax you refer to.
It is not supposed to. The "cid" syntax applies to HTML in emails only.
Crystal Reports has no way of knowing how its HTML will be used, so it
generates normal HTML with normal URL references to external files. You
have to change the HTML manually
> Everything worked ok until the html started to include the reference
> to the AlphaImageLoader.....
The original HTML was still wrong. Most email readers that support HTML
require the "cid" syntax. MSOutlook is more lenient about that, but others
are not.
> why should the html do that... is it dependant on the environment?
Like I said before, that machine likely has a different version of Crystal
Reports installed, or a different version of whatever engine Crystal Reports
uses internally to create the HTML.
> ContentID := AttachFileName ;
You need to surround the ID with angle brackets, ie:
ContentID := '<' + AttachFileName + '>';
Gambit