Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows file preview - similar to preview pane in explorer

In Windows 7 (and I think Vista) the Explorer has a preview pane that lets you see the contents for some file types (MS Office, images, etc). Is there any API available that allows you to access this functionality?

I've been using the WindowsAPICodePack which has a ShellFile.Thumbnail, but this seems to only expose the thumbnail icon for file types that Explorer is able to view. For instance, for a Word file it only displays the MS Word icon, where Explorer can actually preview the contents of the file. It does work like I want for image types, but not for other types of files.

like image 536
Jason Avatar asked Mar 04 '11 02:03

Jason


People also ask

Where is the preview pane in Windows Explorer?

First, let's check out the preview pane in File Explorer. Open File Explorer in Windows 10, click the View tab, and select Preview pane. Click a file you wish to view, such as a Word document, Excel sheet, PowerPoint presentation, PDF, or image. The file appears in the preview pane.

How do I fix the preview pane in File Explorer?

Click on the Advanced system settings under Related settings in the right-hand pane. Click on the Settings button in the Performance option under the Advanced tab in the System Properties window. Change the Performance Options window settings to Adjust for best appearance. Hit OK after clicking Apply.

Does Windows have a preview feature like Mac?

It's called Peek and it performs functionally the same as the MacOS version. With a file selected in Explorer you press Shift+Spacebar to see a preview of it. Once the preview pops up, you have options for what to do next. For images you'll be able to zoom in and out, and edit them in the Photos app.


Video Answer


1 Answers

IPreviewHandler

like image 189
user541686 Avatar answered Sep 22 '22 16:09

user541686