Clear cache programmatically - InfoPath Dev
in

InfoPath Dev

Clear cache programmatically

Last post 01-07-2008 10:21 AM by Patrick Halstead. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 07-11-2006 11:49 PM

    • qwer
    • Top 500 Contributor
    • Joined on 10-04-2005
    • Posts 49

    Clear cache programmatically

    Does anybody know how to remove forms from InfoPath's cache programmatically?
  • 07-13-2006 12:17 AM In reply to

    • Mahitha
    • Top 200 Contributor
    • Joined on 05-24-2005
    • India
    • Posts 57

    Re: Clear cache programmatically

    Enter the following command in the Command Prompt window. This command clears the InfoPath cache

    C:\Program Files\Microsoft Office\OFFICE11>INFOPATH.EXE /cache clearall
  • 07-15-2006 06:16 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Clear cache programmatically

    Check out this link,
    http://blogs.msdn.com/asanto/archive/2004/05/18/133796.aspx

    I hope this will help for you.
  • 07-19-2006 12:19 AM In reply to

    Re: Clear cache programmatically

    This is very cool! Thanks for the link.
    Patrick Halstead
    Project Manager at Qdabra
  • 07-25-2006 02:29 PM In reply to

    Re: Clear cache programmatically

    Hey,

    You can perform that task within an InfoPath form itself. The form will need to be fully trusted.

    VB Script Code snippet below:

    'Purpose to clear the form cache on the client machine
    'date 04/22/2006
    'misc "C:\Program Files\Microsoft Office\OFFICE11\INFOPATH.EXE" /cache clearall

    Dim wshShell
    Dim sRun, sParam, sMsg

    sParam = "C:\Program Files\Microsoft Office\OFFICE11\INFOPATH.EXE /cache clearall"
    Set wshShell = Createobject("WScript.Shell")

    wshShell.Exec sParam

    Set wshShell = Nothing

    This will clear all forms in the cache except for the form that is running the code.

    Hope it helps!
    Mary
  • 01-07-2008 09:56 AM In reply to

    • cathy
    • Top 500 Contributor
    • Joined on 08-19-2007
    • Posts 38

    Re: Clear cache programmatically

    Where do I have to write the above code to clear the InfoPath cache programmatically?

    Thanks

  • 01-07-2008 10:21 AM In reply to

    Re: Clear cache programmatically

    In the InfoPath designer, go to Tools->Programming. You can then select where to add the code - Loading Event is probably what you want. Another option is to pay us for an hour of time to do it. Go to www.Qdabra.com, click on Support and Purchase Support Credits.

     I hope this helps.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.