2008-09-24 13 views

Répondre

2

Utilisez la méthode ApplicationClass.XDocuments.Close et transmettre votre objet document:

using System; 
using Microsoft.Office.Interop.InfoPath; 

namespace ConsoleApplication1 
{ 
    class Program 
    { 
     static void Main(string[] args) 
     { 
      var app = new ApplicationClass(); 
      var uri = @".\form1.xml"; 
      var doc = app.XDocuments.Open(uri, 0); 

      app.XDocuments.Close(doc); 
     } 
    } 
} 
Questions connexes