I started this form in InfoPath 2003. Rather than try to gut it and replace with 2010 functionality, I'm starting a blank project in 2010 to test this functionality.
I throw the code in my brand new blank form and get a vb error:
'MustOverride' cannot be specified on 'Public MustOverride Sub Export(fileLocation As String, format As <unrecognized type>)' because it is in a partial type that is declared 'NotInheritable' in another partial definition.
So after quadruple reading the MSDN doc, I suspect trusts to be a problem. the new InfoPath doc is set ot Full Trust, I even give it a signed security certificate. I try to open the form in Filler and get:
"The form template cannot be opened, because the system administrator has disabled opening form templates that require full trust."
Think this is associated with the previous "MustOverride" error?
~Dustin.