Skip to content

Commit 308cc8b

Browse files
author
KB Bot
committed
Added new kb article grid-export-image-column-excel
1 parent cd344a7 commit 308cc8b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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, <br />Document Processing Library</td>
19+
</tr>
20+
<tr>
21+
<td>Version</td>
22+
<td>6.0.0</td>
23+
</tr>
24+
</tbody>
25+
</table>
26+
27+
## Description
28+
29+
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?
30+
31+
## Solution
32+
33+
To export an image column from the Grid to Excel, follow these steps:
34+
35+
1. Handle the Grid's [`OnAfterExport` event]({%slug grid-export-events%}#onafterexport) to capture the Excel export output as a memory stream.
36+
2. Use the [Document Processing Library](https://docs.telerik.com/devtools/document-processing/introduction) to modify the Excel file similar to the example in the knowledge base article about [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).
37+
38+
For more details on working with images in the Document Processing Library, refer to the [official documentation](https://docs.telerik.com/devtools/document-processing/introduction).
39+
40+
If you encounter any questions regarding the usage of the Document Processing libraries, feel free to ask for further assistance the DocumentPorcessing team.
41+
42+
## See Also
43+
44+
- [Handling Export Events in Grid]({%slug grid-export-events%})
45+
- [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)