我希望能够打印我用silverlight-toolkit制作的图表。
该应用程序是用Silverlight4编写的。
然而,我不知道如何做到这一点。
有没有人知道这是如何工作的,或者有什么教程?
我一直在谷歌上搜索,看看是否能找到什么,但我没有找到任何对我有用的东西。
提前谢谢。
编辑:
在单击print按钮后,我使用了以下代码,但没有任何反应:
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
发布于 2014-10-03 19:33:53
看看这个网站:http://kb.yworks.com/article507.html。希望这对你有帮助!
https://stackoverflow.com/questions/26155399
复制相似问题