Why the function XDocuments.Open will always show a window,and how can i use this function to make it run in background? - InfoPath Dev
in

InfoPath Dev

Why the function XDocuments.Open will always show a window,and how can i use this function to make it run in background?

Last post 09-26-2009 05:08 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-25-2009 01:07 AM

    Why the function XDocuments.Open will always show a window,and how can i use this function to make it run in background?

     Hi, firends:

    I had a problem,when I want to implement a function that enable me to batch print infopath XML files in my own app ,and my  code likes this [Delphi]:

     

    App:= CreateOleObject('InfoPath.Application'); // line 1

    App.XDocuments.Open ('C:\Form2.xml') ;// line 2

    App.XDocuments.Item(0).PrintOut ;//line 3

     

    The line  :App.XDocuments.Open ('C:\Form2.xml')  will show a infopath form fill window,and i only want that the infopath run in the backgound,and do not show any it's windows.

    How can i make it?

    Thanks every much!

    (I am sorry for that my English is so poor~~~)

     

     

     

    Filed under: , , ,
  • 09-26-2009 05:08 AM In reply to

    Re: Why the function XDocuments.Open will always show a window,and how can i use this function to make it run in background?

    In the MSDN documentation, it says:

    When you use the Open method, the specified form opens in InfoPath and is ready to be filled out.

    I don't see any overloads that would let you use that method without opening the form. Searching Google didn't pull up too many alternatives, either. There is a company selling a product that allows you to bulk print from SharePoint, so there must be a way to do this....

    Hilary Stoupa

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