We are having aa probblem with forms using older versions of the forms that are stored in cache.
The only way we have found to fix the problem is to clear the cache.. the infopath versioning sometimes works, sometimes not .. depending on the level of operasting system used. XP, XP pro, Win 7 ..
We store our fom templates in sharpoint libraries and open them using a link to a loadform.
The loadform uses the call
var FormLibraryName = "FormLib_Accountsetup";
var strParentURL = "http://xxxx/";
var strTemplate = strParentURL + FormLibraryName + "/Forms/template.xsn";
var strSaveLocation = strParentURL + FormLibraryName
var strProgID = "SharePoint.OpenXMLDocuments";
var strReLcation = strParentURL + "_layouts/FormServer.aspx?XsnLocation=" + strTemplate;
createNewDocumentWithRedirect(strTemplate, strSaveLocation , strProgID, true, strReLcation, 0);
to open the form that its pointing at. I can add the call
var sh=new ActiveXObject("Wscript.Shell"); sh.run("infopath /cache clearall")
before it actually does the call to open the form to clear the caache but it opens the infopath screens.
Is there a way to use this call to clear the cache, but not bring those screens up ?