Automating Infopath 2007 Form Printing From VS2005 C# Windows Application - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Automating Infopath 2007 Form Printing From VS2005 C# Windows Application

Last post 08-13-2008 01:16 PM by Jeff S. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-13-2008 01:16 PM

    • Jeff S
    • Not Ranked
    • Joined on 08-13-2008
    • Posts 2

    Automating Infopath 2007 Form Printing From VS2005 C# Windows Application

    I have written a routine in a VS2005 C# Windows form application to print a group of InfoPath 2007 forms. It works, but it looks clumsy because the Infopath application window is being opened in a maximized state. Is there a way to hide or minimize the Infopath application window?

    The following is an snipet of the code:

    //

    // Create an instance of the InfoPath Application

    //

    IP.ApplicationClass InfoPathApp = new IP.ApplicationClass();

    IP.XDocument myXdoc = InfoPathApp.XDocuments.NewFromSolution(sFormTemplate);

    myXdoc.PrintOut();

    object objDoc = InfoPathApp.XDocuments[0];

    InfoPathApp.XDocuments.Close(objDoc);

     

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