Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to set Expiry Date to .ppt/.pptx files [modified]

How to set Expiry Date to .ppt/.pptx files [modified]

Scheduled Pinned Locked Moved C#
comtutorialasp-nethelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sachinkalse
    wrote on last edited by
    #1

    Dear All We have been struggling to set expiry date to power point files with following code. Though there is no syntactical error in it, it fails to set expiry date for given file. Microsoft.Office.Interop.PowerPoint.Presentation presentation; Microsoft.Office.Interop.PowerPoint.ApplicationClass oPPT = new Microsoft.Office.Interop.PowerPoint.ApplicationClass(); presentation = oPPT.Presentations.Open(pptFileName.ToString(), Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse); presentation.Application.Activate(); presentation.Permission.Enabled = true; presentation.Permission.Add("real_alias@real_site.com", MsoPermission.msoPermissionRead, dtExpireDate); presentation.Close(); presentation = null; oPPT = null; We have done similar thing with excel and word files successfully and still are clueless for doing the same to Infopath file. Please guide Regards Sachin

    modified on Sunday, December 09, 2007 9:00:07 PM

    P 1 Reply Last reply
    0
    • S sachinkalse

      Dear All We have been struggling to set expiry date to power point files with following code. Though there is no syntactical error in it, it fails to set expiry date for given file. Microsoft.Office.Interop.PowerPoint.Presentation presentation; Microsoft.Office.Interop.PowerPoint.ApplicationClass oPPT = new Microsoft.Office.Interop.PowerPoint.ApplicationClass(); presentation = oPPT.Presentations.Open(pptFileName.ToString(), Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse); presentation.Application.Activate(); presentation.Permission.Enabled = true; presentation.Permission.Add("real_alias@real_site.com", MsoPermission.msoPermissionRead, dtExpireDate); presentation.Close(); presentation = null; oPPT = null; We have done similar thing with excel and word files successfully and still are clueless for doing the same to Infopath file. Please guide Regards Sachin

      modified on Sunday, December 09, 2007 9:00:07 PM

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      I've tried looking into this. Have you figured out what is going on?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups