No changes are needed, you just need to use new version of our components.
If you use Delphi XE7 or newer, everything works automatically.
For older versions, download DIMime, and activate {$DEFINE RVUSEDMIME} in rvHtmlViewImport.pas
Making HTML email client with CleverComponents
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
That's what I expected too. I tried the demo using Berlin 10.1, TRV 16.9.5 and CIS 8.3, enabled defines in RichViewAcrions.inc:
{$DEFINE USERVHTML}
{$DEFINE USERVHTMLVIEWER}
{$DEFINE USECLEVERCOMPONENTS}
and TRVAControlPanel.ClHTTP assigned to clHttp1.
No image will be downloaded. I found an EInvalidGraphic exception in TRVGraphicHandler.LoadFromFile (RVGrHandler.pas)
Example for filenames (2nd email type):
http://data.lidl.de/d/d.gif?aabbccddmswf
http://www.reichelt.de/bilder/Newslette ... 6_head.png
{$DEFINE USERVHTML}
{$DEFINE USERVHTMLVIEWER}
{$DEFINE USECLEVERCOMPONENTS}
and TRVAControlPanel.ClHTTP assigned to clHttp1.
No image will be downloaded. I found an EInvalidGraphic exception in TRVGraphicHandler.LoadFromFile (RVGrHandler.pas)
Example for filenames (2nd email type):
http://data.lidl.de/d/d.gif?aabbccddmswf
http://www.reichelt.de/bilder/Newslette ... 6_head.png
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
About compatibility with the new version of CleverComponents: add clEmailAddress in "uses" of main.pas, the function GetEmailAddressParts is moved in this unit.
About the image files.
1) Some handled exceptions may occur while loading, they are visible only in IDE
2) The link http://data.lidl.de/d/d.gif?aabbccddmswf does not return an image.
The second link returns the correct PNG, so I do not know why it does not work in your case. Please recheck in the next update, it will include rewritten connections between RichViewActions and spell checkers and downloaders.
It will be uploaded in the beginning of the next week.
About the image files.
1) Some handled exceptions may occur while loading, they are visible only in IDE
2) The link http://data.lidl.de/d/d.gif?aabbccddmswf does not return an image.
The second link returns the correct PNG, so I do not know why it does not work in your case. Please recheck in the next update, it will include rewritten connections between RichViewActions and spell checkers and downloaders.
It will be uploaded in the beginning of the next week.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
In the new version of TRichView, CleverComponents can be used by RichViewActions without modifying inc-files.
The components for integration CleverComponents and these demo projects are included in the TRichView installer.
Currently, this update is available for registered users of TRichView, but we plan to update the public trial in the next week.
However, you are right, there is a problem with loading external images in HTML.
The demo has TclHttp component on the email editing form, but it is used only when importing (pasting) files while editing the message.
I made changes, so not it is used when loading HTML from email message as well. I sent changes to you by email, these changes will be included in the next update.
The components for integration CleverComponents and these demo projects are included in the TRichView installer.
Currently, this update is available for registered users of TRichView, but we plan to update the public trial in the next week.
However, you are right, there is a problem with loading external images in HTML.
The demo has TclHttp component on the email editing form, but it is used only when importing (pasting) files while editing the message.
I made changes, so not it is used when loading HTML from email message as well. I sent changes to you by email, these changes will be included in the next update.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: