首页 新闻 会员 周边 捐助

Aspose.Words 如何复制某个对象到剪贴板

0
悬赏园豆:100 [已关闭问题] 关闭于 2017-01-12 15:39

找了好久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);
        }
WCode的主页 WCode | 初学一级 | 园豆:103
提问于:2016-12-23 17:32
< >
分享
所有回答(2)
0

Clipboard.SetDataObject

jello chen | 园豆:7336 (大侠五级) | 2016-12-24 08:02

 试过了,没有用啊

支持(0) 反对(0) WCode | 园豆:103 (初学一级) | 2016-12-26 09:27
0

这是不可能的~~~

WCode | 园豆:103 (初学一级) | 2017-01-12 15:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册