首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >打印图表(工具包)

打印图表(工具包)
EN

Stack Overflow用户
提问于 2014-10-02 14:20:53
回答 1查看 125关注 0票数 0

我希望能够打印我用silverlight-toolkit制作的图表。

该应用程序是用Silverlight4编写的。

然而,我不知道如何做到这一点。

有没有人知道这是如何工作的,或者有什么教程?

我一直在谷歌上搜索,看看是否能找到什么,但我没有找到任何对我有用的东西。

提前谢谢。

编辑:

在单击print按钮后,我使用了以下代码,但没有任何反应:

代码语言:javascript
复制
Chart chartToPrint; // The element to be printed
PrintDocument doc = new PrintDocument(); // Create the PrintDocument  object that will do the printing
doc.PrintPage += (s, args) =>
{
  // Set the chart that needs to be printed.
  // As soon as this is set, printing starts
  args.PageVisual = chartToPrint;
}

编辑:

我尝试过的东西:

http://gergelyorosz.com/2010/05/printing-in-silverlight-printing-charts-and-auto-scaling/

http://kb.yworks.com/article507.html

http://www.visiblox.com/blog/2010/05/advanced-printing-in-silverlight-printing-charts-and-auto-scaling

http://msdn.microsoft.com/en-us/library/system.drawing.printing.pagesettings.landscape(v=vs.110).aspx

printing an image in landscape orientation?

http://msdn.microsoft.com/en-us/magazine/hh148152.aspx

EN

回答 1

Stack Overflow用户

发布于 2014-10-03 19:33:53

看看这个网站:http://kb.yworks.com/article507.html。希望这对你有帮助!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26155399

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档