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

Export chart on the server

3 Answers 188 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Hartmut Kocher
Top achievements
Rank 1
Hartmut Kocher asked on 21 Jun 2012, 11:47 AM
Is there a way to generate svg (or png/pdf) directly on the server?
All examples that I have seen so far, generate the svg in the browser and post it back to the server where it's converted to png/pdf.

I want to create a report on the server. So there is no chart visible in the client browser. The image must be created entirely on the server (where it will be embedded in PDF or Excel files that are created on the fly).

Any ideas?

Kind regards
Hartmut

3 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 22 Jun 2012, 12:04 PM
Hi Hartmut,

We have a code library project which demonstrates how to export Kendo UI Chart to a PNG or a PDF file using Inkscape.

Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Hartmut Kocher
Top achievements
Rank 1
answered on 22 Jun 2012, 12:34 PM
Hi Iliana,

I am sorry but your answer is completely beside my question. Your code project shows a solution where the chart is rendered in the client browser and the svg is posted back to the server where it is rendered as a png picture. This only works if the chart is shown in the browser.

I am looking for a solution where the chart is rendered on the server! (not in the browser). I don't want to show the chart first, but I want to create a chart in the background (so I can include it in a Excel or PDF report). So at the time of the creation the chart is not visible!

So basically, I need to create the svg on the server. Do you have a solution for this?

kind regards
Hartmut
0
Iliana Nikolova
Telerik team
answered on 23 Jun 2012, 06:49 PM
Hi Hartmut,

I apologize for the misunderstanding. I am afraid we do not have such a solution in Kendo UI, because it is a client-side library. For your scenario I would suggest to check the Telerik Reporting tool.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Hartmut Kocher
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Hartmut Kocher
Top achievements
Rank 1
Share this question
or