New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Export Charts to PDF

If you have a spreadsheet with an Excel chart on it, you can now convert it to a PDF with RadSpreadProcessing, together with the rest of the document.

To convert the Excel chart to an image in the PDF, you need to implement the IPdfChartRenderer interface.

If you have access to the Telerik UI for WPF suite, you can do this with just a few lines of code.
You can find an example in the following documentation article: Export Spreadsheet with Chart to PDF.

A runnable console application that demonstrates the approach is available in the Telerik Document Processing SDK: https://github.com/telerik/document-processing-sdk/tree/master/SpreadProcessing/ExportChart.

Cannot Render Html file!
  • DefaultVB.aspx
  • styles.css
<%@ Page Language="vb" AutoEventWireup="true"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div id="SpreadProcessing" class="demo-container">
        <p>If you have a <strong>spreadsheet </strong>with an Excel&nbsp;<strong>chart </strong>on it, you can now <strong>convert </strong>it <strong>to</strong> a <strong>PDF </strong>with RadSpreadProcessing, together with the rest of the document.</p>
        <p>To convert the Excel chart to an image in the PDF, you need to implement the&nbsp;<strong>IPdfChartRenderer </strong>interface.</p>
        <p>
            If you have access to the <a href="https://www.telerik.com/products/wpf/overview.aspx">Telerik UI for WPF</a> suite, you can do this with just a few lines of code.<br />
            You can find an example in the following documentation article: <a href="https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/charts/pdf-export">Export Spreadsheet with Chart to PDF</a>.
        </p>
        <p>A runnable console application that demonstrates the approach is available in the Telerik Document Processing SDK: <a href="https://github.com/telerik/document-processing-sdk/tree/master/SpreadProcessing/ExportChart">https://github.com/telerik/document-processing-sdk/tree/master/SpreadProcessing/ExportChart</a>.</p>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance