silverlight-toolkit으로 만든 차트를 인쇄하고 싶습니다.
응용 프로그램은 Silverlight 4로 작성되었습니다.
그러나이 작업을 수행하는 방법을 알지 못합니다.
아무도 어떻게 작동하는지 또는 어딘가에 설명서가 있습니까?
나는 Google에서 뭔가를 찾을 수 있는지 검색했지만 나에게 효과가있는 것을 찾지 못했습니다.차트 인쇄 (도구 키트)
미리 감사드립니다.
편집 :
나는 인쇄 버튼을 클릭하지만 아무것도 happends없는 후 나는 다음과 같은 코드를 useing 해요 :
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
[즐겨 찾기 검색 엔진] (http://gergelyorosz.com/2010/05/printing-in-silverlight-printing-charts-and-)에 빠른 여행으로 이것을 다루는 여러 기사가 있습니다. auto-scaling /) –
답변 해 주셔서 감사합니다. 나는 이것을 다음과 같이 보게 될 것이다 :). – Dave
인쇄 작업을 할 수없는 것 같습니다. 이제이 코드를 사용합니다 : Chart chartToPrint; // 인쇄 할 요소 PrintDocument doc = new PrintDocument(); // 인쇄 할 PrintDocument 객체를 만듭니다. doc.PrintPage + = (s, args) => { // 인쇄해야하는 차트를 설정합니다. //이 값을 설정하면 인쇄가 시작됩니다. args.PageVisual = chartToPrint; } 인쇄 버튼을 클릭하면 실행됩니다. 그러나 아무 일도 일어나지 않습니다. – Dave