Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

System.OutOfMemoryException when writing large Excel file#1952

sw-ms-hardiksenghani started this conversation inGeneral
Discussion options

Environment:

OpenXmlWriter(Package:3.3.0)
.NET Version: .Net Core 8
Operating System: Windows 10
Issue Summary:

We are generating an Excel file with approximately:

180 columns
500,000 rows
Cell formatting applied throughout
While writing data using OpenXmlWriter, the process fails after approximately 350,000 rows with the following exception:

Exception in Stream was too long.
Exception of type 'System.OutOfMemoryException' was thrown.
Steps to Reproduce:

Create a workbook and worksheet.
Populate 180 columns with formatted data.
Loop through and write 500,000 rows.
Save the workbook.
Expected Behavior: The Excel file should be generated successfully without memory issues.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
1 participant
@sw-ms-hardiksenghani

[8]ページ先頭

©2009-2025 Movatter.jp