Systematically Clearing Infopath Cache on Startup - InfoPath Dev
in

InfoPath Dev

Systematically Clearing Infopath Cache on Startup

Last post 06-18-2013 11:59 AM by PriestB. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-18-2013 11:59 AM

    Systematically Clearing Infopath Cache on Startup

    Hello all,

     I have a need to clear the InfoPath 2010 cache on form opening. Through a search I found the following code:

         Dim wshShell, sParam

      sParam = "C:\Program Files\Microsoft Office\OFFICEXX\INFOPATH.EXE /cache clearall"

      Set wshShell = Createobject("WScript.Shell")

      wshShell.Exec sParam

      Set wshShell = Nothing

    I added this code to the OnLoad Event and it returns with an error:

    Name 'CreateObject' is not declared.

    The form will not save and will not build.

    Is there anyone that has tried to systematically cleared cache on an InfoPath form load?

     

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.