Good day!

I create a Word document in an ASP.NET application from a template by substituting fields through the OpenXMLPowerTools library. The template contains 1 sheet, the final document should contain about 850 sheets.

When using the OpenXMLPowerTools library, the OpenXMLPowerTools WmlDocument resultDocument= DocumentBuilder.BuildDocument(sources) (the source is List<Source> respectively, with 850 objects) drops OutOfMemoryException (on a 4 GB machine), the final document itself will weigh about 4 MB.

Maybe someone came across this?

  • And in Visual Studio in the profiler did not see how much memory it eats? - Umed February

0