I wrote the simple code, but even it doesn't work. I receveid the file that MS Word can't open.
XWPFDocument doc;
using (Stream fileStream = System.IO.File.OpenRead(pathTemplate))
{
doc = new XWPFDocument(fileStream);
fileStream.Close();
}
using (FileStream fileStreamNew = System.IO.File.Create(fullPath))
{
doc.Write(fileStreamNew);
fileStreamNew.Close();
}