D
DavidR
Hi,
I have a document library in Sharepoint that stores InfoPath forms of a
specific template.
I've used Visual Studio tools and C# to develop the InfoPath template. It
contains an HTML button in a custom task pane that calls through to the C#
code and, among other things, closes the form by using:-
thisApplication.XDocuments.Close(0);
When I test this on a form in the library it works correctly, but when I go
to reopen the form, I get an message :-
"This form cannot be filled out, either because you do not have adequate
permissions, another user has the form open, or the form is open in another
program. Do you want to open a read-only version of this form?"
The same message appears if I use the command:- thisApplication.Quit();
The message does not appear if I close the form manually (eg click cross
button).
I've seen a few other posts where people are getting this message, but not
in relation to the use of the code I have mentioned.
I was wondering if anyone knew why this happens in response to the commands
I have mentioned, and whether there is a fix or workaround.
Any help in this regard would be appreciated.
Thanks,
David.
I have a document library in Sharepoint that stores InfoPath forms of a
specific template.
I've used Visual Studio tools and C# to develop the InfoPath template. It
contains an HTML button in a custom task pane that calls through to the C#
code and, among other things, closes the form by using:-
thisApplication.XDocuments.Close(0);
When I test this on a form in the library it works correctly, but when I go
to reopen the form, I get an message :-
"This form cannot be filled out, either because you do not have adequate
permissions, another user has the form open, or the form is open in another
program. Do you want to open a read-only version of this form?"
The same message appears if I use the command:- thisApplication.Quit();
The message does not appear if I close the form manually (eg click cross
button).
I've seen a few other posts where people are getting this message, but not
in relation to the use of the code I have mentioned.
I was wondering if anyone knew why this happens in response to the commands
I have mentioned, and whether there is a fix or workaround.
Any help in this regard would be appreciated.
Thanks,
David.