Skip to content

Conversation

github-actions[bot]
Copy link

No description provided.

@dessyordanova dessyordanova self-assigned this Aug 11, 2025
@dessyordanova dessyordanova added the For Review Should be reviewed by a team member. Provide feedback using comments wherever is necessary label Aug 27, 2025
@dessyordanova dessyordanova requested a review from YoanKar August 27, 2025 14:27

#### Sample implementation for exporting charts as PNG with 300 DPI:

```csharp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code snippet is incomplete. There is no import of document, extracting the chartShape, and creating a FixedContentEditor. Consider expanding the snippet so it is buildable once pasted in a project.

@@ -0,0 +1,74 @@
---
title: Exporting Charts from Excel Documents to PNG Images with a Specific DPI Resolution Using SpreadProcessing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider rephrasing the titles and descriptions to include the use of the UI for WinForms and WPF suites, as well as the PdfProcessing library. Currently, only the SpreadProcessing library is mentioned.


## Description

Learn how to extract the [charts]({%slug radspreadprocessing-features-charts%}) from Excel documents and save as PNG files specifying the desired resolution, e.g. 300 DPI.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: Learn how to extract the [charts]({%slug radspreadprocessing-features-charts%}) from Excel documents and save them as PNG files, while specifying the desired resolution (e.g. 300 DPI).


## Solution

Exporting charts directly from Excel files to PNG images with a specific resolution (e.g.300 DPI) using Telerik [SpreadProcessing]({%slug radspreadprocessing-overview%}) is not supported. SpreadProcessing focuses on spreadsheet data manipulation and exporting to formats like XLSX and PDF but does not handle chart export or DPI settings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole paragraph is irrelevant and can be trimmed, as it focuses on what the library cannot do. Consider adding a description of the actual approch that needs to be taken.

For example: Exporting Charts from Excel files to images is not yet supported by the SpreadProcessing library. As an alternative...


### Alternative Approach: Exporting to PDF

Export the XLSX document to PDF format using SpreadProcessing. This method internally uses a **chart renderer** for rendering charts in the PDF. Implement a custom [IPdfChartRenderer]({%slug radspreadprocessing-features-charts-pdf-export%}) to manipulate chart resolution and save the chart as a PNG image in the ongoing export process.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add code snippet for this approach as well.

@YoanKar YoanKar added Reviewed Already reviewed by a team member and the author should address the feedback in the comments and removed For Review Should be reviewed by a team member. Provide feedback using comments wherever is necessary labels Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Already reviewed by a team member and the author should address the feedback in the comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants