-
No worries. Glad it helped :-)
-
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
-
You are AWESOME!!!
Thank you!
I followed all of your directions, and the save button works.
Thanks for all your help
-Lawson
-
I already told you how to fix the problem and Hilary has modified your code to work correctly. It has nothing to do with the System.Text namespace.
-
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 ...
-
Ah, I see Jimmy already posted the details about the issue! Here is a zip with the modified code. I've also included a Word docx with some screenshots and info to help you get your form template repointed to the corrected code module.
-
I can see the problem, don't bother trying to add references -- I'll have this posted back here shortly...
-
It looks like there's a bug in Microsoft's code sample.
They have this line:
InfoPathAttachmentEncoding.Encoder myEncoder = new InfoPathAttachmentEncoding.Encoder(fileName);
But the class is called InfoPathAttachmentEncoder, not just Encoder. Try this instead:
InfoPathAttachmentEncoding.InfoPathAttachmentEncoder ...
-
[quote user="kcoakley"]What are the offending items in this code?[/quote]
Every single one of them, I'm afraid :-)
The corresponding code for IP 2007 would be:XPathNavigator row = MainDataSource.CreateNavigator().SelectSingleNode("//my:repeatingtable[last()]", NamespaceManager);
// I don't think you need ...
-
What happens if you remove this part?:
field = doc.CreateElement("field3", NamespaceManager.LookupNamespace("my"));
node = group.AppendChild(field);
node.InnerText = "Cell 3";
The button is part of the repeating table control. It's not something you manually add to each row from the code.