我用VS2010和c#中的"MSGraph.Chart.8“成功地做到了这一点,这些图表看起来古老而像素化,就像1995年左右一样。在线帮助似乎都是一样的。就像这个……http://support.microsoft.com/kb/316384
我真的需要在代码中用更好的图形生成这些word文档,或者至少编辑现有的word文档,并用代码设置图形和文本的数据。在21世纪如何做到这一点?这就是Word 2007和那些看起来更漂亮的图表。
(或者有没有一种方法可以构建一个aspx页面,将其内容转储到word文档中?任何事情!)
谢谢,willgroove
发布于 2010-10-16 06:55:15
您需要查看word api
下面是一些示例代码,您需要添加对word com库的引用。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Microsoft.Office.Interop.Word;
static void Main(string[] args)
{
Application App = new Application();
Document D = App.Documents.Add();
App.Visible = true;
D.Content.Text = "hi I'm a new word doc";
}https://stackoverflow.com/questions/3946626
复制相似问题