it tasks minitus and huge memory when i updating the following word document.
Untitled_20170728_094148.zip (2.2 MB)
I tried to find and update the toc only, but it seems has no any improvement。
I tried to use following code to avoid the huge memory usage, but it did not update toc event if i set UpdateFields to true.
var folder = “D:\tempFiles”;
using (var stream = new MemoryStream())
var saveOption = SaveOptions.CreateSaveOptions(format);
saveOption.MemoryOptimization = true;
saveOption.TempFolder = folder;
saveOption.UpdateFields = true;
saveOption.UpdateSdtContent = true;
Is there any way to saving memory usage when update toc?