Say, I am trying to create a large excel workbook with 20000 rows. I find that the amount of memory it uses on the server is extremely high, most times causing an outofmemory exception.
This is basically how i generate my files. Is there a better way of doing it which won't cause such a delay/memory usage. Thanks.
Aspose.Cells.License license = new Aspose.Cells.License();
license.SetLicense("../Aspose.Total.lic");
Aspose.Cells.Workbook excel = new Aspose.Cells.Workbook();
I have tried all of the suggestions (including getting onto the latest version).
Basically, I ahve a file that could have up to the 65k rows allowed by excel with about 5 columns.
I noticed the file that it created was 32MB. However, what concerned me the most was that the server memory spiked 800mb while it was creating the file (I tried both to the response object and file creation -- no difference).
There are many reasons for taking a large amount of memory to be consumed. A cell in a sheet contains different types of data in it like it has its value, it has some formattings, it has some formulas etc. If the value is string then it takes different amount of memory, if it has an integer then it takes different amount of memory. In this way the size of memory consumed will increase.
Thanks,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.