Word._Application
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();
}
}
|
HTML code for linking to this page:
Related in same category :
-
|