去这儿看一看,有帮助:
http://www.codeproject.com/info/search.asp

解决方案 »

  1.   


    private Word.ApplicationClass WordApp = new Word.ApplicationClass();
    object missing = System.Reflection.Missing.Value;
    object fileName = "normal.dot";
    object newTemplate = false;
    object docType = 0;
    object isVisible = true; Word.Document aDoc = WordApp.Documents.Add(ref fileName, ref newTemplate, ref docType, ref isVisible); WordApp.Visible = true; aDoc.Activate(); WordApp.Selection.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter;
    WordApp.Selection.Font.Bold = (int)Word.WdConstants.wdToggle;
    WordApp.Selection.TypeText(theQueryDialog.Title);