thisXDocument C# undefined value - InfoPath Dev
in

InfoPath Dev

thisXDocument C# undefined value

Last post 04-02-2008 02:39 AM by Roberto. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-02-2008 02:39 AM

    thisXDocument C# undefined value

    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

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.