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 / October 2004

Tip: Looking for answers? Try searching our database.

Submit form with attachment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maurizio - 15 Oct 2004 09:57 GMT
I have form with document attachment.
Is it possible to submit this form in Form Library on Sharepoint and the
attached document in other Document Library in the same Sharepoint site,
automatically?
Thanks in advance
Scott Roberts [MSFT] - 20 Oct 2004 15:12 GMT
Well, it's possible but not exactly easy.  The best way I can think to do
this is to handle the OnSubmitRequest event.  In your event handler, you'll
need to extract the file attachment data and submit it to the SharePoint
list in code.  I don't know enough about SharePoint to tell you how to
submit the extracted data using code. You might want to look at the
SharePoint SDK for that.

To extract the file attachment, this article will be helpful:
http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ip2003_
ta/html/odc_infopath_attaching_files.asp
.

Also, this article describes how to create file attachments
programmatically:
http://tips.serriform.com/CSharpCreateInfoPathAttachment.htm. You can
reverse the process to extract the files.

This will obviously require a lot of code.

- Scott

>I have form with document attachment.
> Is it possible to submit this form in Form Library on Sharepoint and the
> attached document in other Document Library in the same Sharepoint site,
> automatically?
> Thanks in advance
 
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.