RadHtmlChart export full images

8 posts, 1 answers
  1. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 12 May 2015 Link to this post

    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

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 13 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 13 May 2015 in reply to Danail Vasilev Link to this post

    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?
  5. Answer
    Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 15 May 2015 Link to this post

    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
  6. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 15 May 2015 in reply to Danail Vasilev Link to this post

    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
  7. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 15 May 2015 in reply to Doug Link to this post

    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
  8. Doug
    Doug avatar
    68 posts
    Member since:
    Aug 2014

    Posted 15 May 2015 in reply to Doug Link to this post

    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" />
  9. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 19 May 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017