Export Image From Dashboard (without being rendered)

3 posts, 0 answers
  1. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 18 Aug 2011 Link to this post

    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. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 24 Aug 2011 Link to this post

    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 >>

  3. Tim
    Tim avatar
    114 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post

    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.
Back to Top