FAQ & Knowledge Base

Welcome to our Knowledge Base. Search or browse through the topics below to find answers to your questions.

Categories: ShellBrowser Delphi Components | ShellBrowser .NET Components | Show all categories

Preview eml files

Question / Problem

I want to display an .eml file in the FilePreview component, but it doesn't work. Is this supported?

Answer / Solution

It seems, that depending on the Windows version, the system's preview handler is not automatically registered.

You can do so manually in the registry, or implement the "OnLoadPreview" event to assign the Preview Handler GUID, e.g. :

if (UpperCase(ExtractFileExt(eventArgs.Path)) = '.EML') then begin
  
eventArgs.PreviewHandlerGuid := TShellPreviewHandlerGuids.Mime;