This is a migrated thread and some comments may be shown as answers.

Export Image From Dashboard (without being rendered)

2 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 18 Aug 2011, 11:06 AM
Hello.

What would be the best way to export a dashboard with different controls like charts, gauges in the scenarios:
a) the dashboard was already rendered from silverlight
b) the dashboard was NOT yet rendered from silverlight

A good example would be the chart seen here:
http://demos.telerik.com/silverlight/#Chart/FirstLook

The ExportToImage method is no help as it is only implemented for some controls.
Telerik Reporting is also no help as it does not contain an end-user-designer (any news on that topic?)

So I guess the solution somehow contains a WriteableBitmap?
Point b) would be really important because it should be allowed for the user to select "Report XYZ" for example in a treeView (and so the report itself is not rendered) and say "Export now"...

Any ideas? Hints? Help?
Thanks a lot in advance!!!

All the best and greetings,
Tim.

2 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 24 Aug 2011, 12:02 PM
Hi Tim,

You can export multiple controls simultaneously using the RadDocument control as wrapper. This approach was demonstrated here.

Best wishes,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Tim
Top achievements
Rank 1
answered on 24 Aug 2011, 12:37 PM
Hello Evgenia,

thanks for your reply! I've seen that example but I don't want to compose an image. :)
I want one image that looks exactly like it would have been rendered on the screen; with all the controls, headers, footers, ...

Something like:
public void doExport()
{
     Dashboard myDashboard = new Dashboard(viewModel);
     myDashboard.Export(image);
}

The result on the screen and the result in the exported report including the dashboard should be identical.
But thanks again for taking your time to answer!

All the best,
Tim.
Tags
General Discussions
Asked by
Tim
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Tim
Top achievements
Rank 1
Share this question
or