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

RadHtmlChart export full images

7 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 12 May 2015, 06:49 PM

RadHtmlChart - I am looking into a way to export all the images (or svg's) in a HtmlChartHolder.
I saw this update here but have heard no help posted there yet. http://www.telerik.com/support/code-library/exporting-radhtmlchart-to-png-and-pdf

my issue is the text does not show up. it may be a permissions issue or the font library looking in the wrong place.

I have tried the fixes suggested there but I still only get 1 image without text created.
also I look at the page and there is the HtmlChartHolder in a div and then multiple svg's inside it of my charts.
so I think I would need a way to loop them and send them all to the server to be created into an image.

maybe I should look into a different svg to image on server program?
also, I have done some image combining myself so if I can get to those images put into a folder such as img01.jpg, img02.jpg etc etc I have my own code to combined them I can use (if nothing out of the box does it)

Doug

7 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 13 May 2015, 12:30 PM
Hello Doug,

I can suggest that you use the ClientExportManager that lets you do the exporting on the client-side. You can also export the whole page as well.

Please examine this demo for details on the matter and let me know if some questions arise - http://demos.telerik.com/aspnet-ajax/client-export-manager/applicationscenarios/export-radhtmlchart/defaultcs.aspx?product=htmlchart

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Doug
Top achievements
Rank 1
answered on 13 May 2015, 09:28 PM
I tried this sample code and used both exportPDF and exportImage
the image exports fine.
the pdf export has no text on it. (no labels, title, series legend, axis numberings)

I tried with the pako.min.js and without.
ok I tried the export whole page which I just set the .exportImage($#<%=HtmlChartHolder.ClientID ...
the image exports for all the charts + titles works fine.

the pdf exports the full size of the chart list area but I only see the first chart and again with no text whatsoever.

any ideas on why the pdf isn't working properly?
0
Accepted
Danail Vasilev
Telerik team
answered on 15 May 2015, 01:35 PM
Hi Doug,

I have tried to reproduce the mentioned issue with the provided example from my previous post but to no avail - the chart is properly exported with all the labels with the ClientExportManager in all major browsers.

Could you please provide us with the following information that may help us determine the cause of the issue:
     - Do you reproduce the issue with the provided online demo from my previous post?
     - Is the issue a browser specific and if so which is the browser and its version?
     - If you are not using latest official Telerik UI version - 2015.1.401, does upgrading to it helps?
     - Can you please provide us with the problematic code, so that we can investigate it further?

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Doug
Top achievements
Rank 1
answered on 15 May 2015, 01:45 PM
ok I copied your exact demo to my local and ran it just fine. there is something I am doing / not doing that is causing my issue with the PDF export. I will find out exactly what it is and repost but there is no need for your attention forward. thx much for the help.

Doug
0
Doug
Top achievements
Rank 1
answered on 15 May 2015, 04:02 PM
the issue is if I add this to your code it then fails (in the OnInit class)
        Dim oSeries As Telerik.Web.UI.ScatterLineSeries = RadHtmlChart1.PlotArea.Series(0)
oSeries.MarkersAppearance.BorderWidth = 1 '<--- this causes it to fail
0
Doug
Top achievements
Rank 1
answered on 15 May 2015, 08:10 PM
telerik version = 2015.1.401.40

I can also replicate error in your demo by changing the front end tag to
<MarkersAppearance Size="4" BorderWidth="1" />
0
Danail Vasilev
Telerik team
answered on 19 May 2015, 08:18 AM
Hi Doug,

This is an issue with the control. I have logged it here -http://feedback.telerik.com/Project/108/Feedback/Details/158798, so that you can monitor, comment and vote on it.

I have also updated your Telerik points for reporting this issue to us.

Regards,
Danail Vasilev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Doug
Top achievements
Rank 1
Share this question
or