locked
Creating Custom Preview Handlers RRS feed

  • Question

  • Hi

    I am new to .net development. I am using VS 2010 and c#. I wanted to create a custom preview handler for specific file extensions such as .ppt, .pptx, .doc, .docx, .pdf, .pdf. I searched it on net but couldn't any article suitable for beginners. So it would be great if anyone can suggest any article or tell me where to start from.

    I can use any help here.

    Thanks in advance.

     


    Kumar Abhishek Always Ready to Learn:)
    • Moved by Leo Liu - MSFT Monday, August 29, 2011 2:33 AM Off-Topic (From:Visual C# General)
    Monday, August 22, 2011 10:42 AM

Answers

  • Hi abhishekismad,

    I think if you wanna realize one preview tool which can be used for all the file types you've mentioned, it is really a huge project.
    As for different file type, different APIs or mechanisms are used to handle them. So it must be a time-consuming work even with regard to a dev team.
    So I suggest that you, for example, focus on one file type and post a more specific problem or issue.

    As most of your file types are Microsoft Office document types, I'd like to suggest that you post in the General Office Development Forum if you wanna use the Office Interop APIs.

    Thanks for your understanding.

    Have a nice day,
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by abhishekismad Monday, September 12, 2011 7:32 AM
    Thursday, August 25, 2011 7:16 AM

All replies

  • You want to implement a thumbnail handler. Here is the MSDN section.

    http://msdn.microsoft.com/en-us/library/cc144118(v=vs.85).aspx

    Here is an example in C++, didn't see any for C#

    http://code.msdn.microsoft.com/CppShellExtThumbnailHandler-32399b35

    You will need to translate the implementation to C# and managed platform.

    Monday, August 22, 2011 11:12 AM
  • Hi Andreas

     

    Thanks for the reply. I guess i want a preview handler as in http://msdn.microsoft.com/hi-in/magazine/cc163487%28en-us%29.aspx. I was hoping something which can simplify this.

     

     


    Kumar Abhishek Always Ready to Learn:)
    Monday, August 22, 2011 11:16 AM
  • Sorry, I may have misunderstood you as I thought it was for explorer thumbnail preview.

    Since you have found one sample, but you mean it is not easy to follow it?

    Monday, August 22, 2011 11:26 AM
  • I guess so. Actually am new to this field and that article seemed very complex.  So i was wondering if there is any other article or resource that i can refer to.

     


    Kumar Abhishek Always Ready to Learn:)
    Monday, August 22, 2011 11:29 AM
  • There is a sample at http://1code.codeplex.com but it is C++.

    I don't think it will be much easier as described.

    Monday, August 22, 2011 11:38 AM
  • Hi abhishekismad,

    I think if you wanna realize one preview tool which can be used for all the file types you've mentioned, it is really a huge project.
    As for different file type, different APIs or mechanisms are used to handle them. So it must be a time-consuming work even with regard to a dev team.
    So I suggest that you, for example, focus on one file type and post a more specific problem or issue.

    As most of your file types are Microsoft Office document types, I'd like to suggest that you post in the General Office Development Forum if you wanna use the Office Interop APIs.

    Thanks for your understanding.

    Have a nice day,
    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by abhishekismad Monday, September 12, 2011 7:32 AM
    Thursday, August 25, 2011 7:16 AM