-
Notifications
You must be signed in to change notification settings - Fork 79
Added new kb article grid-export-image-column-excel #2426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NansiYancheva
merged 6 commits into
master
from
new-kb-grid-export-image-column-excel-8a37ba1be4bc473f81bf63312776aed1
Oct 14, 2024
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
308cc8b
Added new kb article grid-export-image-column-excel
b0dddd4
Update knowledge-base/grid-export-image-column-excel.md
NansiYancheva 4540be4
add reference
NansiYancheva 504dccc
Merge branch 'new-kb-grid-export-image-column-excel-8a37ba1be4bc473f8…
NansiYancheva 8226aa9
Update knowledge-base/grid-export-image-column-excel.md
NansiYancheva 83d4ed4
update after review
NansiYancheva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| --- | ||
| 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 | ||
|
|
||
| <table> | ||
| <tbody> | ||
| <tr> | ||
| <td>Product</td> | ||
| <td>Grid for Blazor, <br />Document Processing Library</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Version</td> | ||
| <td>6.0.0</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| ## 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? | ||
|
|
||
NansiYancheva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ## 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 [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). | ||
NansiYancheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 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). | ||
NansiYancheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 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). | ||
NansiYancheva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## 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%}) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.