Hi guys. I have a problem.
When i try to create DocX Document with using DocX.ApplyTemplate-metod and save it, then i recive an exception: "Cannot access part because parent package was closed." on line 2297:
using (TextWriter tw = new StreamWriter(settingsPart.GetStream(FileMode.Create, FileAccess.Write)))
at DocX.Save metod.
My code it is very simple:
DocX doc = DocX.Create("new.docx");
What am i doing wrong?
Thx for your help!