Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
298 views
in Technique[技术] by (71.8m points)

Large excel files taking more time to initialize for ClosedXML

I am using ClosedXML.0.76.0 in my MVC 5 C# project to load the uploaded excel file's data into the object which exists in the MVC controller and afterward displaying data in UI from the object.

To get this, I am using WorkBook = new XLWorkbook(file.ServerPath) to initialize/load excel data in the WorkBook object.

Now my question is while I am initializing XLWorkbook for a small size excel file, it's working fine but when the excel file is large (approx 4 MB size) then it is taking 5 to 6 seconds to create/initialize XLWorkbook object. Is there any way to optimize the time for creating the XLWorkbook object for a large excel file?

My large excel file has many unused/blank columns at last. Is there any way to get only used columns and rows while creating/initializing the XLWorkbook object so it can speed up initialization if we are not including blank/unused columns for the XLWorkbook object?

question from:https://stackoverflow.com/questions/65843206/large-excel-files-taking-more-time-to-initialize-for-closedxml

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...