Get the attached file from the code side - InfoPath Dev
in

InfoPath Dev

Get the attached file from the code side

Last post 02-05-2012 12:32 PM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-03-2012 06:12 PM

    Get the attached file from the code side

    Hey guys, I need to be able to access the file attachment in the form code (VB). I have a repeating file attachment field for users to attach as many fields as they need to and then in the code, I need to use a node iterator to iterate through the attachments, decoding the XML to create a System.Net.Mail.Attachment object so that I can use a MailMessage to send an email with those files as attachments to our help desk. I've seen a few blogs on how to encode/decode the file attachments to either publish to a document library or save to the desktop but none that just gave access to the actual documents within the code.. Any ideas??
  • 02-05-2012 12:32 PM In reply to

    Re: Get the attached file from the code side

    This seems to be the definitive document on working with InfoPath attachments.  Have you had a look at this?

    http://support.microsoft.com/kb/892730

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.