Can Create and Submit a Form Using NewFromSolution, But Can't Save()?

B

Barry Prentiss

Hi,
I am able to create a new InfoPath '03 form in VBScript code using
..NewFromSolution().
I am able then to submit the new form using objNewXDoc.submit().
This works fine, however, when I close InfoPath I am prompted to save the
form.
When I include objNewXDoc.save() after the submit(), I get the following
error:
Permission denied: 'objNewXDoc.save' Error

This was working for me yesterday without error.
What am I doing wrong?
Any suggestions?

Thx,
Barry

InfoPath/Sharepoint Portal Server '03 and VBScript...
 
S

Swathi (GGK Tech)

Hi,
How you are closing the form? If you are closing the form using code then
you don’t need to save the form.
But when you close the form using cross button at the upper right corner
then you will get this problem. You can avoid this by setting set dirty value
to false after submitting the form. So that until you won’t change any data
you will not forced to save the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top