Opening InfoPath form from .NET - InfoPath Dev
in

InfoPath Dev

Opening InfoPath form from .NET

Last post 12-28-2005 03:51 AM by sjc724. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-27-2005 07:40 AM

    Opening InfoPath form from .NET

    I am developing a .NET Windows application that will interface with InfoPath and I would like the user to be able to double click an .xsn filename from within a ListView control and automatically fire up InfoPath and display the InfoPath form based on the filename selected. I capture the full path to the file in the double click event but not sure how to open the file with InfoPath programmatically. Can someone point me in the right direction?

    Thank you!
  • 12-27-2005 11:59 PM In reply to

    • Nagesh
    • Not Ranked
    • Joined on 07-21-2005
    • India
    • Posts 5

    Re: Opening InfoPath form from .NET

    Hi sjc724,

    After getting the full file name you use the following code,

    System.Diagnostics.ProcessStartInfo psi = new ProcessStartInfo(@"Give your full file path here");
    System.Diagnostics.Process process = new Process();
    process.StartInfo = psi;
    process.Start();

    I think this would work for you,

    Thank you


    Nagesh
    InfoPath Dev India
  • 12-28-2005 03:51 AM In reply to

    Re: Opening InfoPath form from .NET

    That worked! Thank you very much.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.