Hi Patrick and Jimmy,
Happy to see you again Patrick , too.
Patrick: Yes you can normally use this object in 2003 it's decribe on the link to the blog of Infopath. I think you are maybe a little bit tired but I dont think you use drugs ;-) YES I would like to convert my project to 2007 OM! But I didn't know how to make my button in my custom toolbar for that fires the related events in my code (I have ask on them but no answer)
Jimmy: Like I say in my first message I have VS 2005 and I have also tried on VS 2008 both are with tools for office (I use Team system version).
What I don't understand is that I have make this work on my forms that I have published in May. All was working great with this _XDocument3 but now when I open this project I see that _XDocument3 are not know by visual Studio.
Here some picture for a better explanation:
When I open this old project _XDocument3 is ok

If I try to see the reference that go to the right place:


But If I try to compile this project Visual Studio didn't find anymore _Xdocument3

But _XDocument and _XDocument2 are always in the DOM why XDocument3 has disappear can you explain me?
Thanks a lot
Thierry
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci