Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use one of standard Outlook's previewers to preview other file types?

Outlook's "Windows TXT previewer" only previews attachments with extension .txt. Is there a way to tell Outlook (2010) to use "Windows TXT previewer" on other type attachments?

For example, I would like to use it to preview .csv files and some other extensions that are just text.

like image 905
nsg Avatar asked Nov 14 '13 17:11

nsg


People also ask

Is it safe to preview attachments?

How many times have you received an email - from a trusted source - with an attachment? Not wanting to fully commit and open the attachment (because WHAT IF it is malicious), you chose to preview it. Even that is not a safe bet in today's threat landscape.

Why can I not preview attachments in Outlook?

The attachment previewer feature in Outlook only works if you have the same version of Word, Excel, or PowerPoint installed as the version of Outlook being used to preview the attachment. An attachment can appear in the Reading Pane or in the message body.

How do I change the default program for opening attachments?

Choose Programs > Make a file type always open in a specific program. If you don't see Programs, choose Default Programs > Associate a file type or protocol with a program. In the Set Associations tool, select the file type you want to change the program for, then choose Change program.


2 Answers

Here is a registry change:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Excel.CSV\ShellEx]

[HKEY_CLASSES_ROOT\Excel.CSV\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"

Here {1531d583-8375-4d3f-b5fb-d23bbd169f22} is GUID for text previewer (listed among HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers) and {8895b1c6-b41f-4c1c-a562-0d564250836f} is special ID that identifies previewer for this filetype. It may be different for other verisons of windows, http://msdn.microsoft.com/en-us/library/windows/desktop/cc144143(v=vs.85).aspx may or may not have more details

like image 117
nsg Avatar answered Sep 30 '22 04:09

nsg


In order to achieve your goal, you have to change some entries in the Registry. Preview HAndlers have GUIDs that are stored in the Registry. For each filetype, if there is one available, there is a preview handler.

For .csv files you need the Preview Handler from Microsoft Excel since a .csv file is Excel.

like image 24
ValarmorghulisHQ Avatar answered Sep 30 '22 03:09

ValarmorghulisHQ