I want to set expiry of word document using c# code. Please help me! RRS feed

  • Question

  • Hi..
    I want to set expiry of existing word document using c# code so that it will become unusable after certain days. Additionally i also want to restrict word editing and printing. 
    I heard that we can do this using IRM and open xml sdk but not able to find exactly steps how to do that. Actually i want to restrict this in a way that end user does not need to install anything else other than MS Office.
    Any help will be appreciated :)
    Wednesday, November 13, 2019 4:09 AM

All replies

  • Hi Jitendra G Chauhan,

    Since your question is more related to visual studio tools for office, I will move the case to VSTO forum for better help.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, November 13, 2019 7:05 AM