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 / March 2008

Tip: Looking for answers? Try searching our database.

Submit Data Connection to local drive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Delnang - 25 Mar 2008 14:28 GMT
I have a need to create a Submit Data Connection to C:\.  I see how to do
webservice or SharePoint but is there a way to send the xml form to C:\?

Thanks,
Angie
Gavin McKay - 26 Mar 2008 01:46 GMT
Hello,

One way to do this would be to create a data connection to call some custom
code (C# or VB) and save it directly to the C:\ drive.  You can get access to
the full Xml document via code so you would be able to stream this to a file
fairly easily.  You would need to have your form Fully Trusted to be able to
do this from memory, as you need elevated privileges to be able to access the
file system.

The other way of course is just use a "Save As..." from the File menu...

HTH

Gavin.

> I have a need to create a Submit Data Connection to C:\.  I see how to do
> webservice or SharePoint but is there a way to send the xml form to C:\?
>
> Thanks,
> Angie
Delnang - 26 Mar 2008 14:54 GMT
I have a follow up question.  What is the jscript code to set the default
filename to the content of a field in my form using File Save As?

Thanks,
Angie

> Hello,
>
[quoted text clipped - 16 lines]
> > Thanks,
> > Angie
Gavin McKay - 26 Mar 2008 23:14 GMT
Can't advise on JScript sorry - C# yes, JScript no :)  However to get to the
content of a field on your form you would access the built-in InfoPath xml
document and use an XPath query to get the data.  In design mode, on the Data
Source tab, if you right-click on the form value you want and click "Copy
XPath" you will have a full path to the item you need.  Use that with your
XPath statement.

Gavin.
Signature

2B | !2B

> I have a follow up question.  What is the jscript code to set the default
> filename to the content of a field in my form using File Save As?
[quoted text clipped - 22 lines]
> > > Thanks,
> > > Angie

Rate this thread:






 
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.