Cannot create PackageProperties class instance to write file property! RRS feed

  • Question

  • Dear all,

    I have tried to write a property to file such as “Creator” using PackageProperties class. But it seems the PackageProperties is always return NULL when I have created the instance. Does anyone see the same problem? How can I create the PackageProperties instance so I can write a property such as “creator” information into the file?

    Any information is greatly appreciated.


    Monday, June 4, 2012 4:44 PM


  • Hi Michael,

    Welcome to the MSDN Forum.

    How do you inherit this class?

    Please take a look at it: http://msdn.microsoft.com/en-us/library/ms571919 

    This class is abstract class, so please inherit it and then instance an object.

    I hope I am clear. 

    Best regards,

    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Cor Ligthert Tuesday, June 5, 2012 6:05 AM
    • Marked as answer by Mike Feng Monday, June 18, 2012 1:30 PM
    Tuesday, June 5, 2012 5:28 AM