Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2005

Tip: Looking for answers? Try searching our database.

Saving via Save Button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ralf Erdmann - 17 Nov 2005 10:56 GMT
Hello,

how do I save my infopath document on a specified path with a Command Button
in VBscript code. I made some tries with PerformSaveOperation
but always got Runtime Errors.

Can someone help me please ?

Thx in advance

Ralf
Franck Dauché - 17 Nov 2005 19:11 GMT
Hi Ralf,

Did you try: XDocument.SaveAs(your path)
Form will need to be Full Trust

Regards,

Franck Dauché

> Hello,
>
[quoted text clipped - 7 lines]
>
> Ralf
AlexW - 06 Dec 2005 20:52 GMT
I am having the same problem.  The form is fully trusted.  I get the message
"Infopath cannot complete this action because of an error in the form's
code."  
The code is:
Sub CTRL429_6_OnClick(eventObj)

    XDocument.UI.Alert("Saving form...")
    XDocument.SaveAs("D:\MyForm.xml")

End Sub

Thanks,
Alex

> Hi Ralf,
>
[quoted text clipped - 16 lines]
> >
> > Ralf
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.