Skip to content

Commit 6c7c13b

Browse files
NansiYanchevakendo-botKB Botikoevskantacheva
authored
Added new kb article grid-export-image-column-excel (#2426) (#2444)
* Added new kb article grid-export-image-column-excel * Update knowledge-base/grid-export-image-column-excel.md * add reference * Update knowledge-base/grid-export-image-column-excel.md * update after review --------- Co-authored-by: Kendo Bot <[email protected]> Co-authored-by: KB Bot <[email protected]> Co-authored-by: Iva Stefanova Koevska-Atanasova <[email protected]> Co-authored-by: Nadezhda Tacheva <[email protected]>
1 parent fb8810b commit 6c7c13b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Exporting Grid's Image Column to Excel in Blazor
3+
description: Learn how to export an image column from the Telerik Blazor Grid to an Excel file by utilizing the Document Processing Library.
4+
type: how-to
5+
page_title: How to Export Grid's Image Column to Excel with Blazor
6+
slug: grid-export-image-column-excel
7+
tags: grid, blazor, telerik, export, excel, image, column
8+
res_type: kb
9+
ticketid: 1666986, 1662544, 1645206, 1655440
10+
---
11+
12+
## Environment
13+
14+
<table>
15+
<tbody>
16+
<tr>
17+
<td>Product</td>
18+
<td>Grid for Blazor</td>
19+
</tr>
20+
</tbody>
21+
</table>
22+
23+
## Description
24+
25+
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?
26+
27+
## Solution
28+
29+
To export an image column from the Grid to Excel, follow these steps:
30+
31+
1. Handle the Grid's [`OnAfterExport` event]({%slug grid-export-events%}#onafterexport) to capture the Excel export output as a memory stream.
32+
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).
33+
34+
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).
35+
36+
## See Also
37+
38+
- [Handling Export Events in Grid]({%slug grid-export-events%})
39+
- [Knowlegde base article about custom cell formatting of the exported file with RadSpreadProcessing]({%slug grid-kb-custom-cell-formatting-with-radspreadprocessing%})

0 commit comments

Comments
 (0)