最好有实例和资料,我的msn是[email protected]

解决方案 »

  1.   

    string xx,yy;
    Word.ApplicationClass oWord = new Word.ApplicationClass();
    Word.Document oDoc;
    Word.Range oRange;
    Word.Table otable;
    Word.Selection  oselection;
    object a = Missing.Value;
    object b = Missing.Value;
    object filename=@"c:\test.doc";
    oDoc = oWord.Documents.Open(ref filename,ref a,ref a,ref a,ref 
    //or oDoc = oWord.Documents.Add(ref a,ref a,ref a,ref a);
    a,ref a,ref a,ref a,ref a,ref a,ref a,ref a);  
    oWord.Visible = true;
    oDoc = oWord.ActiveDocument
      

  2.   

    Word.ApplicationClass WordApp = new Word.ApplicationClass();
    object missing = System.Reflection.Missing.Value;
    object fileName = "normal.dot";   // template file name
    object newTemplate = false;   object docType = 0;
    object isVisible = true;//  Create a new Document, by calling the Add function in the Documents collectionWord.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;//  Toggle the title to a Bold Font
    WordApp.Selection.Font.Bold = (int)Word.WdConstants.wdToggle;WordApp.Selection.TypeText(listView1.Items[0].Text);完整代码到这里看:
    http://www.c-sharpcorner.com/Code/2002/Mar/WordFromDotNet.asp
      

  3.   

    谢谢storm97(风暴不再) ,snof(雪狼) ,但是这样一来word是单独在一个窗体中打开了,我想的是把word集成到我自己的窗体中来,就象在IE
      

  4.   

    前几天好像在codeproject上看看类似的文章,现在找不到了,你上去找找看
      

  5.   

    http://www.megspace.com/internet/rocsky/pdfviewer.zip
    vb.net的,你可以把它改成c#的
      

  6.   

    你把ie集成到你的应用中去,然后让ie去打开,不行么?
      

  7.   

    to yuzaichun(最没价值专家) :用webBrowser控件可以,但是多文档就有严重问题
      

  8.   

    BS下Word存取,演示 http://www.21tx.com/WebControls/Demo/WebWordCS/