Hi Everyone
Hi Everyone,
I am having trouble with Ipreviewhandler previewing email with an attachment. For some reason, it skips all email attachment and displays just a plain text with email body
Sample code
MyPreviewHandler: IPreviewHandler;
if MyPreviewHandler.QueryInterface(IInitializeWithItem, InitializeWithItem) = S_OK then
begin
SHCreateItemFromParsingName(PChar(FileName), nil, StringToGUID(csGUID), ShellItem);
InitializeWithItem.Initialize(ShellItem, 0);
end
MyPreviewHandler.DoPreview;
I presume IShellItem can only handle one object at a time. Is there any way I can display both attachment and main email content
Is there anyway i can detect email with attachment using handler?
I am having trouble with Ipreviewhandler previewing email with an attachment. For some reason, it skips all email attachment and displays just a plain text with email body
Sample code
MyPreviewHandler: IPreviewHandler;
if MyPreviewHandler.QueryInterface(IInitializeWithItem, InitializeWithItem) = S_OK then
begin
SHCreateItemFromParsingName(PChar(FileName), nil, StringToGUID(csGUID), ShellItem);
InitializeWithItem.Initialize(ShellItem, 0);
end
MyPreviewHandler.DoPreview;
I presume IShellItem can only handle one object at a time. Is there any way I can display both attachment and main email content
Is there anyway i can detect email with attachment using handler?
Comments
Post a Comment