You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/export-charts-to-pdf-radspreadprocessing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,17 +17,17 @@ ticketid: 1659898
17
17
18
18
## Description
19
19
20
-
When converting an Excel file with charts to PDF, the charts may not display as expected in the PDF document. This may occur when exporting charts to PDF in .NET Framework applications. This KB article shows a sample approach how to ensure charts are correctly exported from Excel files to PDF.
20
+
When converting an Excel file with charts to PDF, the charts may not display as expected in the PDF document. This may occur when exporting charts to PDF in .NET Framework applications. This KB article shows a sample approach how to utilize the chart engine that [WinForms RadChartView]({%slug winforms/chartview/overview%}) control offers and ensure charts are properly exported from Excel files to PDF.
21
21
22
22
## Solution
23
23
24
24
To export charts from Excel files to PDF format using RadSpreadProcessing, follow these steps:
25
25
26
-
1.**Implement a Custom IPdfChartRenderer**: The export process requires providing an `IPdfChartRenderer` implementation. This renderer is responsible for converting the chart shapes from the Excel file into images that can be inserted into the PDF.
26
+
1.**Implement a Custom IPdfChartRenderer**: The export process requires providing an [IPdfChartRenderer]({%slug radspreadprocessing-features-charts-pdf-export%}) implementation. This renderer is responsible for converting the chart shapes from the Excel file into images that can be inserted into the PDF.
27
27
28
-
2.**Use the WinForms RadChartView control**: The WinForms RadSpreadsheetcontrol (that supports charts) internally uses the WinForms RadChartView for visualization and it provides a convenient API for image creation having the FloatingChartShape from the SpreadProcessing model.
28
+
2.**Use the WinForms RadChartView control**: The [WinForms RadSpreadsheet]({%slug ({%slug radspreadsheet-overview%})%}) control (that supports charts) internally uses the WinForms RadChartView for visualization and it provides a convenient API for image creation having the [FloatingChartShape]({%slug radspreadprocessing-features-charts-using-charts%}) from the SpreadProcessing model.
29
29
30
-
3.**Export the Excel to PDF**: Use the `PdfFormatProvider` to export the workbook to PDF, setting the `ChartRenderer` property to your custom renderer implementation.
30
+
3.**Export the Excel to PDF**: Use the [PdfFormatProvider]({%slug radspreadprocessing-formats-and-conversion-pdf-pdfformatprovider%}) to export the workbook to PDF, setting the `ChartRenderer` property to your custom renderer implementation.
31
31
32
32
Below is a sample implementation using the WinForms RadChartView for chart visualization:
33
33
@@ -60,4 +60,4 @@ pdfFormatProvider.ExportSettings.ChartRenderer = new WinFormsPdfChartImageRender
60
60
-[Export Chart to PDF]({%slug radspreadprocessing-features-charts-pdf-export%})
61
61
-[RadChartView for WinForms Overview]({%slug winforms/chartview/overview%})
62
62
-[Export Chart to Image in WinForms]({%slug winforms/chartview-/features/export%})
Copy file name to clipboardExpand all lines: libraries/radspreadprocessing/formats-and-conversion/pdf/format-and-conversion-settings.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ __PdfExportSettings__ allow controlling how a __Workbook__ is exported to PDF. U
30
30
31
31
*__PdfFileSettings__: A property of type __Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfExportSettings__ which is a class related to the [RadPdfProcessing library]({%slug radpdfprocessing-overview%}). Thus, the property allows you to control the image quality, encryption, compliance level and other PDF format related properties. More information on the settings is available in the [export settings article for RadPdfProcessing]({%slug radpdfprocessing-formats-and-conversion-pdf-settings%}).
32
32
33
+
***ChartRenderer**: A property of type [IPdfChartRenderer](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.spreadsheet.formatproviders.pdf.export.ipdfchartrenderer) that gets or sets the renderer which will be used to render charts. It is not relevant for the .NET Standard version of the Telerik Document Processing libraries. Read more in the [Export Chart to PDF]({%slug radspreadprocessing-features-charts-pdf-export%}) article.
34
+
33
35
34
36
__Example 1__ shows how to export the Entire Workbook without ignoring the __PrintArea__ property in all worksheets.
0 commit comments