- Code: Select all
// Spire.DOC laden
Spire.License.LicenseProvider.SetLicenseFileFullPath(HttpContext.Current.Server.MapPath("~/App_Data/spire.license.xml"));
Spire.Doc.Document doc = new Spire.Doc.Document(Server.MapPath("~/app_data/AblUH_ZE14.docx"));
// Dokumentenschutz aufheben
try { doc.Protect(Spire.Doc.ProtectionType.NoProtection); } catch { }
doc.SaveToFile(Server.MapPath("~/App_data/out.docx"), Spire.Doc.FileFormat.Docx2013);
The proces uses more and more RAM until it runs into a timeout.
This seems to be caused by the preselected/first value in the Dropdown "6. Erledigungsvermerk in BAlimente" >> "Forderung". When I make the second value the first/preselected value with Word, i can save the document using Spire-Doc without the problem above.
I tested Spire.Doc 5.8.0, 5.8.62 and 6.0.35, they all have this issue.