Hi,
I have a 2007 form which opens other 2007 forms from code. I open the forms and submit them, to ensure that the OnFormOpen code gets run, and the data checked/updated on a regular basis. Neither the starting form or the forms it opens are browser enabled.
My starting form is published to SharePoint, and the forms it opens are in a different SharePoint Forms Library. This has worked fine in the past, I have not changed the form, but it has stopped working from SharePoint. When I am using the designed version on my PC and running in preview it works. Both forms are running with Full Trust and have valid security certificates.
The bit of code in question is...
fileLocation =
"http://......../eu-it/ARK/ARKDocuments/" & xmlfile & ".xml?util=openallforms"
Try
returnValue = Me.Application.XmlForms.Open(fileLocation, behavior)
Try
returnValue.Submit()
Catch ex1 As Exception
returnValue.Close()
failedtext = failedtext & "| Failed to Submit " & node.SelectSingleNode("./QDname", NamespaceManager).Value
End Try
returnValue.Close()
Catch ex As Exception
failedtext = failedtext & "| Failed to Open" & node.SelectSingleNode("./QDname", NamespaceManager).Value
End Try
I keep getting the "Failed to Open" returned.
Does anyone have any ideas why it works in preview and not in published mode ? Or any ideas what could have stopped the published one from working ?
Any help would be gratefully received.
Thanks
Catharine