Créer une application Office en C#: Exemple de document Word

Author:

Créer,une,application,Office,en,C#:,Exemple,de,document,Word
{filelink=15056}

using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Word;

namespace office
{
    public class CreationApplicationOffice
  {
      // Créer un objet Microsoft Word et lancer

    [STAThread]
    static void Main(string[] args)
    {
      Word.ApplicationClass testWord = new Word.ApplicationClass();
      testWord.Visible = true;
      System.Windows.Forms.Application.Run();
    }
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *