Word._Application : Word « Windows « C# / CSharp Tutorial






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

class MainClass
{
  [STAThread]
  static void Main(string[] args)
  {
    Word._Application MyWord = (Word._Application)Marshal.GetActiveObject("Word.Application");

    MyWord.PrintPreview = true;
    System.Windows.Forms.Application.Run();
  }
}








29.16.Word
29.16.1.Word._Application
29.16.2.Modify Document Properties
29.16.3.Query docx properties