Accessing code in InfoPath 2003 forms from Visual Studio 2005 - InfoPath Dev
in

InfoPath Dev

Accessing code in InfoPath 2003 forms from Visual Studio 2005

Last post 09-08-2010 04:49 AM by JBryant. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-08-2010 04:49 AM

    Accessing code in InfoPath 2003 forms from Visual Studio 2005

    Can vbscript code contained in an InfoPath 2003 form be accessed from VS2005 on a machine running Office 2010?

    We are testing Office 2010 our our PC's and the custom task pane code that works just fine on PC's running Office/InfoPath 2007 does not run on the test PC's. I've been reading that the vbscript code in the form can't be edited directly when opening the form in InfoPath 2010, but that's not what I'm trying to do. I want to access the vbscript code through the .Extension property of the XDocument object from client side javascript code on an .aspx page like we have done for years.

    The existing code, which runs perfectly on PC's with Office/InfoPath 2007,  looks like this ...

    var xDoc = window.external.Window.XDocument;
    xDoc.Extension.UserLookupDone (userid);

    When run on PC's with Office/InfoPath 2010 the code throws error "Class doesn't support Automation". Are we trying something that is no longer possible? Any help is appreciated.

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