jueves, 06 de mayo de 2010 2:43
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?
Todas las respuestas
jueves, 06 de mayo de 2010 15:37
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.
Senior Escalation Engineer Microsoft Corporation US-CSS DSC PROTOCOL TEAM
jueves, 06 de mayo de 2010 18:26Propietario
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.
Open Packaging Conventions (OPC) - Wikipedia
- Marcado como respuesta Jack Davis - MSFTOwner jueves, 06 de mayo de 2010 18:29