How to open an infopath form in .net - InfoPath Dev
in

InfoPath Dev

How to open an infopath form in .net

Last post 08-23-2006 04:54 AM by K.Ramana Reddy. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-15-2006 05:37 AM

    • asankaf
    • Not Ranked
    • Joined on 04-19-2006
    • Sri Lanka
    • Posts 6

    How to open an infopath form in .net

    hi

    how can i open an infopath form via .net and this openning should be a hidden process or minimized window.

    I have written a C# code to open the forms in minimized mode but it doesnt work as expected.
    for the first time it shows the window and then minimized.

    for ( int i=0 ;what ever ; )
    {
    Microsoft.Office.Interop.InfoPath.XDocument doc = app.XDocuments.Open(@arrFileNames.ToString(),8);
    app.ActiveWindow.Left = 0;
    app.ActiveWindow.Top = 0;
    app.ActiveWindow.Height = 0;
    app.ActiveWindow.Width = 0;
    app.ActiveWindow.WindowState = Microsoft.Office.Interop.InfoPath.XdWindowState.xdWindowStateMinimize;

    // submit the form
    doc.Submit();
    }
  • 08-23-2006 12:00 AM In reply to

    Re: How to open an infopath form in .net

    Hi Asankaf,
    Are you saying it opens the form but the form is not minimized, or are you saying that the first form is not minimized but the rest are? If the latter, add some code to your InfoPath form to minimize. In general, InfoPath does not have good support for automation, so not sure what you are trying to do, but you can be sure that automating InfoPath is going to be some work. :) Good luck!
    Patrick Halstead
    Project Manager at Qdabra
  • 08-23-2006 04:54 AM In reply to

    Re: How to open an infopath form in .net

    Hi,

    Check out this link, may be you can get some information.

    http://infopathdev.com/forums/topic.asp?TOPIC_ID=1471

    I hope this will help for you,
    Thanks.
    K.Ramana Reddy / http://www.ggktech.com
    India.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.