Creating InfoPath Forms Programmatically - InfoPath Dev
in

InfoPath Dev

Creating InfoPath Forms Programmatically

Last post 03-10-2008 08:01 AM by davidair. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-10-2008 02:09 AM

    • LarryC
    • Not Ranked
    • Joined on 03-10-2008
    • Posts 1

    Creating InfoPath Forms Programmatically

    I'm not sure if this is the right place to post this, but I have a program that generates web services.  I would like to create a base InfoPath form that would use those web services.  Currently I'm looking at generating the source XML files, but was wondering if anyone knew of an easier/better way to create an InfoPath form programmatically?

     Thanks,

     Larry

  • 03-10-2008 08:01 AM In reply to

    Re: Creating InfoPath Forms Programmatically

    InfoPath Designer does not have a public object model so the short answer would be "no". The longer answer is that you can most likely use the Microsoft Active Accessibility APIs to your own poor-man's automation but this would be cumbersome and time-consuming at best.

    I assume that to generate InfoPath form you will start by creating a simple form and using it as a template for your generated ones. Depending on the complexity of your forms this may prove to be a hard task as well especially if you have the so-called "structural" editing, that is, sections that allow to insert/remove XML (or repeating tables/sections). Make sure to cover the entire spectrum of what you are planning to autogenerate by hand first so that you can find out all the constructs you need to use.

    Finally, one word of caution: InfoPath is much more lenient in editing mode, forms generated outside of InfoPath may open for filling out but would not be designable.

    Good luck!

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.