From b13b4110c80b808ca296873be8cc6630de058f1a Mon Sep 17 00:00:00 2001 From: Kendo Bot Date: Mon, 14 Oct 2024 19:21:49 +0300 Subject: [PATCH] Added new kb article grid-export-image-column-excel (#2426) * Added new kb article grid-export-image-column-excel * Update knowledge-base/grid-export-image-column-excel.md Co-authored-by: Iva Stefanova Koevska-Atanasova * add reference * Update knowledge-base/grid-export-image-column-excel.md Co-authored-by: Nadezhda Tacheva <73842592+ntacheva@users.noreply.github.com> * update after review --------- Co-authored-by: KB Bot Co-authored-by: NansiYancheva <106161782+NansiYancheva@users.noreply.github.com> Co-authored-by: Iva Stefanova Koevska-Atanasova Co-authored-by: NansiYancheva Co-authored-by: Nadezhda Tacheva <73842592+ntacheva@users.noreply.github.com> --- .../grid-export-image-column-excel.md | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 knowledge-base/grid-export-image-column-excel.md diff --git a/knowledge-base/grid-export-image-column-excel.md b/knowledge-base/grid-export-image-column-excel.md new file mode 100644 index 0000000000..2ad65f1aa2 --- /dev/null +++ b/knowledge-base/grid-export-image-column-excel.md @@ -0,0 +1,39 @@ +--- +title: Exporting Grid's Image Column to Excel in Blazor +description: Learn how to export an image column from the Telerik Blazor Grid to an Excel file by utilizing the Document Processing Library. +type: how-to +page_title: How to Export Grid's Image Column to Excel with Blazor +slug: grid-export-image-column-excel +tags: grid, blazor, telerik, export, excel, image, column +res_type: kb +ticketid: 1666986, 1662544, 1645206, 1655440 +--- + +## Environment + + + + + + + + +
ProductGrid for Blazor
+ +## Description + +I want to export the Telerik Blazor [Grid]({%slug grid-overview%})'s column that displays images to an Excel file. The images are rendered in a [Grid column template]({%slug grid-templates-column%}). How can I include the image column in the Excel export? + +## Solution + +To export an image column from the Grid to Excel, follow these steps: + +1. Handle the Grid's [`OnAfterExport` event]({%slug grid-export-events%}#onafterexport) to capture the Excel export output as a memory stream. +2. Use the [SpreadProcessing library](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview) to modify the Excel file. Similar to how the exported file is customized here - [Custom cell formatting of the exported file with RadSpreadProcessing]({%slug grid-kb-custom-cell-formatting-with-radspreadprocessing%}). The SpreadProcessing library supports [inserting images in the cells](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/shapes-and-images). + +If you encounter any questions regarding the usage of the Document Processing libraries, [contact the DocumentPorcessing team](https://docs.telerik.com/devtools/document-processing/knowledge-base/submit-support-tickets). + +## See Also + +- [Handling Export Events in Grid]({%slug grid-export-events%}) +- [Knowlegde base article about custom cell formatting of the exported file with RadSpreadProcessing]({%slug grid-kb-custom-cell-formatting-with-radspreadprocessing%})