Creating Charts in the Background

5 posts, 1 answers
  1. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 18 Feb 2010 Link to this post

    Hello,

    I am working on a windows service that can generate Charts as png files and then email them to recipients. I would like to leverage RadChart for this. I've already gotten my charts nice and pretty in my fat client, but now I want to do the same thing in the windows service. Is this possible? The data is available to the windows service, so hopefully it's just a matter of instantiating the radChart object, setting the parameters, binding to the dataset, and then calling the export function. 

    Thanks!
    Jeremy
  2. Answer
    Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 24 Feb 2010 Link to this post

    Hi Jeremy,

    It is possible to instantiate the RadChart, but a reference to the System.Drawing assembly will be required.

    Also, note, that RadChart relays on the device context available to render. In the case of non-windowed application, don't know what device context will be available to the chart.

    All the best,
    Joshua
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 24 Feb 2010 Link to this post

    Hi Joshua,

    After having worked with the service some more, I have managed to be successful in exporting completed charts. It was really as simple as instantiating the radchart and then setting parameters.

    Thanks!
    Jeremy
  5. Stradas
    Stradas avatar
    4 posts
    Member since:
    Apr 2005

    Posted 26 Feb 2010 Link to this post

    I am trying to design the same sort of system. Do you have any code examples that would help me?
  6. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 03 Mar 2010 Link to this post

    Hello Mark,

    Please, find a sample project attached.

    Kind regards,
    Joshua
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WinForms is Visual Studio 2017 Ready