Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 8 of 9 (86 items) « First ... < Previous 5 6 7 8 9 Next > Re: Attachment Encoder and Decoder When I made the changes, the code passed through the debugger. However, when I tried to save the attachments I received the following.NullReferenceException was unhandled by user codeTroubleShooting tips:Use the “new” keyword to create an object instance For this line, String theAttachment2 = nn.text; Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder I tried to alter the button with the following code. [InfoPathEventHandler(MatchPath = "btnSave", EventType = InfoPathEventType.OnClick)]public void btnSave_OnClick(DocActionEvent e) { //Get a reference to the attachment node.IXMLDOMNode n = thisXDocument.DOM.selectSingleNode("my:myFields/my:theAttachmentField"); ... Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Can I add more attachment fields to the save button, or do I need to add another save button? Thanks -Lawson Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Yeah I know. I was following all of her directions and testing it. I posted that last post before I saw your response. You're AWESOME man. Thanks for all of your help Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder You are AWESOME!!! Thank you! I followed all of your directions, and the save button works. Thanks for all your help -Lawson Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder The decoder and encoder classes belong to the System.Text Namespace. I took your suggestion and tried to add the reference. However, the System.Text Namespace does not exist. I found many different system namespaces, but no system.text. This is pretty baffling because from everything I’ve read about VSTA 2.0 leads me to believe this ... Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Ok, I'll look at that and try to add the reference. I have attached the code files. Once again, thank you for all your help. -Lawson Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Sure, I have attached the zipped file. Thanks for all of your help -Lawson Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Thank you for that article on references. I looked up encoder class and decoder class and they belong to a namespace called System.text. I tried to add this reference, but I do not have it in my library. Is there any way to get it of the Internet, or do I need to get visual studio .Net 2005? Posted to Code (Forum) by Lawson on 02-09-2010 Re: Attachment Encoder and Decoder Error 5 and Error 6 refers to fullFileName.EndsWith(Path.DirectorySeparatorChar)in the attachment decoder. Posted to Code (Forum) by Lawson on 02-09-2010 Page 8 of 9 (86 items) « First ... < Previous 5 6 7 8 9 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.