How to impose expiry date to various documents using C#
-
Dear All, Please guide me about imposing Expiry date to MS Office files (.doc, .docx, .xls, .xlsx, .ppt, .pptx, InfoPath) using C#, such that if the file has expiry date today, it should not open tomorrow. I know, we can do it if the IRM client is installed on client machine, but to avoid burden on the user we are told to do it through code. Regards Sachin
-
Dear All, Please guide me about imposing Expiry date to MS Office files (.doc, .docx, .xls, .xlsx, .ppt, .pptx, InfoPath) using C#, such that if the file has expiry date today, it should not open tomorrow. I know, we can do it if the IRM client is installed on client machine, but to avoid burden on the user we are told to do it through code. Regards Sachin
There's no way to implement that kind of functionality. The filesystem would have to support it and, of course, it doesn't. You'd have to write your own file system extension (not in C#) to do this.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
There's no way to implement that kind of functionality. The filesystem would have to support it and, of course, it doesn't. You'd have to write your own file system extension (not in C#) to do this.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Thanks for your reply. But I think its possible, as its already done by one vendor of our client, since its their IP, we do not have access to the source code. That DLL imposes all IRM rights that includes expiry date too. Regards Sachin
-
Thanks for your reply. But I think its possible, as its already done by one vendor of our client, since its their IP, we do not have access to the source code. That DLL imposes all IRM rights that includes expiry date too. Regards Sachin
One of two things can do this. Either the application supports it, or the file system supports it. For the file system, you'd have to write an extension to the file system. For an application, you'd have to write some kind of Add-In for that application that replaces the app's load/save functionality. You can't just "throw in" an expiration date into the document properties and expect that to work on every instance of the application. For instance, throwing an expiration date into a Word document doesn't do anything unless that copy of Word has this extension installed. BUT!! What's to stop the user from opening the document on a copy of Word that DOESN'T have the extension installed?? NOTHING!! The document must be encrypted somehow to get around this kind of functionality limitation. You need to stop other copies of Word from opening up the document. As for how to replace the load/save functionality, I have no idea.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
One of two things can do this. Either the application supports it, or the file system supports it. For the file system, you'd have to write an extension to the file system. For an application, you'd have to write some kind of Add-In for that application that replaces the app's load/save functionality. You can't just "throw in" an expiration date into the document properties and expect that to work on every instance of the application. For instance, throwing an expiration date into a Word document doesn't do anything unless that copy of Word has this extension installed. BUT!! What's to stop the user from opening the document on a copy of Word that DOESN'T have the extension installed?? NOTHING!! The document must be encrypted somehow to get around this kind of functionality limitation. You need to stop other copies of Word from opening up the document. As for how to replace the load/save functionality, I have no idea.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Thanks for the reply Dave, Well, I got some clue from MOSS ECM Starter Kit, where they have given some information about custom IRM protector. If I get anything concrete out of it, will definitely share. If any one has already done some work on it, please do share. Regards Sachin