找了好久Aspose的资料,知道每一个对象在Aspose里面都可以看成是一个Node,现在有一个比较棘手的问题是,找不到复制某个对象到剪贴板的方法,手头的项目(.net)正好用到这个功能,麻烦知道的给段实例,谢谢!
public static void Test() { Aspose.Words.Document doc = new Aspose.Words.Document(); Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc); // Add chart with default data. You can specify different chart types and sizes. Aspose.Words.Drawing.Shape shape = builder.InsertChart(Aspose.Words.Drawing.Charts.ChartType.Column, 432, 252); // Chart property of Shape contains all chart related options. Aspose.Words.Drawing.Charts.Chart chart = shape.Chart;//需要将该对象或shape复制到剪贴板 // chart.Title = "csy1111"; // Get chart series collection. Aspose.Words.Drawing.Charts.ChartSeriesCollection seriesColl = chart.Series; // Delete default generated series. seriesColl.Clear(); // Create category names array, in this example we have two categories. string[] categories = new string[] { "一", "二", "三" }; // Adding new series. Please note, data arrays must not be empty and arrays must be the same size. seriesColl.Add("Series 1", categories, new double[] { 1, 2, 2 }); seriesColl.Add("Series 2", categories, new double[] { 3, 4, 44 }); seriesColl.Add("Series 3", categories, new double[] { 5, 6, 22 }); seriesColl.Add("Series 4", categories, new double[] { 7, 81, 3 }); seriesColl.Add("Series 5", categories, new double[] { 9, 10, 44 }); doc.Save(filePath); }
Clipboard.SetDataObject
试过了,没有用啊
这是不可能的~~~