Aspose.Words.dll 下载及生成doc文件演示

 在网上也没有认真找一下其API及操作说明文档,到时看到再Mark一下,下面是一个生成Doc的实例代码

     DocumentBuilder builder = new DocumentBuilder();

        builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;

        builder.Writeln("helloword");//标题

        builder.PageSetup.ClearFormatting();

        builder.Write("OOOk");//内容

        builder.Write("OOOk\r");//内容

        builder.Write("OOOk");//内容

        builder.Write("OOOk");//内容

        string name = "E:\\test" + ".doc";//文件名

        builder.Document.Save(name);

 

 

 

 

Aspose.Words

你可能感兴趣的:(word)