namespace oozinoz1
{
    /**/
    /// <summary> 
    /// Class5 的摘要说明。 
    /// </summary> 
    public class Class5
    {
        private static void InsertImage(string imagePath, string wordPath)
        {
            Document document = new Document();
            Section s = document.AddSection();
            Paragraph p = s.AddParagraph();

            System.Drawing.Image image = System.Drawing.Image.FromFile(imagePath);
            DocPicture Pic = p.AppendPicture(image);
            Pic.Width = 100;
            Pic.Height = 100;

            document.SaveToFile(wordPath, FileFormat.Doc);
        }
        static void Main()
        {
            // 生成电子文件 
            string filePath = "d:\\test.doc";
            string imagePath = @"d:\Download\lty.png";
            InsertImage(imagePath, filePath);
            StreamWriter sw = File.CreateText(filePath);
            sw.Write("西安");
            sw.Close();