Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Displaying OPC core properties and thumbnails in the Windows Shell

Answered Displaying OPC core properties and thumbnails in the Windows Shell

  • Donnerstag, 6. Mai 2010 02:43
     
     

    Hi,

    We have an application that uses the .Net System.IO.Packaging library to generate a file with our own custom parts etc and we have our own custom file extension etc.

    Within the package we have a core properties part as set out in the OPC and what I would like to be able to do now is inform the shell that files of this extension support the dublin core metadata properties via the OPC spec and hence display the metadata in the propery sheets and also allow search to index the files based on the metadata.

    How do I do this? i.e. Is there a 'standard' property handler that will do this for me or do I have to write my own?

    Likewise the OPC defines a relationship for a thumbnail part and we would like to use this so the thumbnail is shown in the shell - again how do we enable this to happen once we have the package relationship to an image part in our package?

    Thanks,
    Norm.


    Norm

Alle Antworten

  • Donnerstag, 6. Mai 2010 15:37
     
     

    Hello Norm,

        Thank you for your question regarding the [MS-PEAP] document. A member of  the Microsoft Open Specifications Support team will be in contact with you soon to help you with this question.

    Thanks
    John Dunning
    Senior Escalation Engineer Microsoft Corporation US-CSS DSC PROTOCOL TEAM

  • Donnerstag, 6. Mai 2010 18:26
    Besitzer
     
     Beantwortet

    Hi Norm,

    Unfortuantely there are no "standard" or generic property handlers for OPC that will do this for you automatically.  (This is something that would be good to do but there's nothing available yet.)   Currently each file format needs to implement their own property handlers.  Such handlers are typically written to the the Shell Interface APIs.  The interfaces that you would most likely need would be IPropertyStore and IThumbnailProvider/IThumbnailHandlerFactory.  Doing a Bing search for "IPropertyStore sample" or "IThumbnailProvider sample" will return numerous hits with examples to start from.  Thanks for using the System.IO.Packaging APIs - hope this helps.

    Thanks,
    Jack 

    jackdavis

    Open Packaging Conventions (OPC) - Wikipedia

    ISO/IEC 29500-2 Open Packaging Conventions - Spec

    Your data:  Accessible, Findable, Manageable, and Secure - Blog