יום שישי 04 מאי 2012 09:23
I'm working on a simple Word add-in and stuck on this problem for several days. I wonder know if someone on this forum could help me on this. Here is the problem:
I have already done a lot of research on this, here is the document I refer to first: http://msdn.microsoft.com/en-us/library/aa289172(v=vs.71).aspx
This document seems to provide a doable approach to retrieve content preview image of an Office document. I used the VB code of it to build an assembly and add reference to it in my VSTO solution, but it doesn't work. The assembly only works for image and video files, my environment is Windows 7 Ultimate 64-bit and Office 2010 32-bit and both are updated if you ask.
Then turned to this thread: http://stackoverflow.com/questions/1439719/c-sharp-get-thumbnail-from-file-via-windows-api, where I began to think if I could work it out by using these assemblies: http://archive.msdn.microsoft.com/WindowsAPICodePack. Unfortunately, this doesn't work again. The methods provided within these assemblies could only retrieve preview thumbnail of image and video files or ICONs of Office document instead of content preview.
So now I doubt if there is an approach really work on it that retrieving a preview image of first page without opening a document.
שבת 05 מאי 2012 07:24מנחה דיון
See this message in the Word forum (that will point you to information at OpenXMLDeveloper.org): http://social.msdn.microsoft.com/Forums/en-US/worddev/thread/bd249f1c-3425-49c5-8839-58cbb6b1e5a2
Cindy Meister, VSTO/Word MVP
- סומן כתשובה על-ידי Tom_Xu_WXModerator יום חמישי 31 מאי 2012 07:25