Hi all,
I use infopath 2003 and InfoPath™ 2003 Toolkit for Visual Studio® .NET.
I create a infopath form and then I open a new visual studio 2003 infopath project. I build the project successfully but when I perform debug in the quick watch view I get that thisXDocument <undefined value>
The following is the code of project
--------------------------------------------------------------------------------------------------
using
System;
using Microsoft.Office.Interop.InfoPath.SemiTrust;
[assembly: System.ComponentModel.DescriptionAttribute("InfoPathStartupClass, Version=1.0, Class=InfoPathProva.InfoPathProva")]
namespace InfoPathProva
{
[InfoPathNamespace("xmlns:xdUtil=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Util\" xmlns:xdXDocument=\"http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument\" xmlns:my=\"http://schemas.microsoft.com/office/infopath2003/myXSD/2008-04-02T08:27:52\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\" xmlns:msxsl=\"urn:schemas-microsoft-com:xslt\" xmlns:xdMath=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Math\" xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\" xmlns:xdDate=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Date\" xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\")]public class InfoPathProva
{
private XDocument thisXDocument;
private Application thisApplication;public void _Startup(Application app, XDocument doc)
{
thisXDocument = doc;
thisApplication = app;
}
}
--------------------------------------------------------------------------------------------------------
What is the problem?
thanks,
Roberto