I am using .NET and am looking for a way to convert just about any document into a preview image. I say any, but the priorities are Office Documents, PDF, and most image files.
I would assume that I can somehow build upon the Windows Explorer's ability to preview documents... but I do not know how.
What would you do?
On Windows Vista you can use the preview handler API to either write a preview handler or use a preview handler to display a preview in your application. The link contains code that shows you how. Here's an example Photoshop preview handler that also goes over some background information that might be useful.
Finally, here is an example that uses C#. It's a WPF application that uses the C# class COMStream
to get the preview data from a preview handler (which is an unmanaged COM object).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With