in your OrgChart example i found a way to Export the diagram to png or html. Two questions:
1) why ist the Background of the Image black if i Export the Diagramm to png?
2) where do i find the "HTMLExportHelper.CreateHTMLFile(this.diagram);" HTMLExportHelper?
Thanks
Best Regards
Rene
2 Answers, 1 is accepted
0
Pavel R. Pavlov
Telerik team
answered on 12 Sep 2013, 06:43 AM
Hi Rene,
You are allowed to customize the Background of the created image like this:
using (var stream = File.Open(@"c:\temp\xDiagram.png", FileMode.Create))
{
xDiagram.ExportToImage(stream, backgroundBrush: new SolidColorBrush(Colors.BlanchedAlmond));
}
}
You can find more information here. Please note that the default Background of the RadDiagram in the Office_Black theme is Transparent.
Regarding the HTMLExportHelper class, you will be to copy and use it if you install our WPF demos. Let me know whether you would like me to send that class to you.
Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>
res = null !!! It seams that something is wrong with the relativeUri: "Common/ExportToHTML/JavaScript.js" assemblyName= "ITA-AbasOrganigramm" - which is wright!