Код: Выделить всё
using (FileStream wordFile = new FileStream("C:\\User\\Desktop\\wordtest\\testword.docx", FileMode.Open, FileAccess.Read))
{
XWPFDocument doc = new XWPFDocument(wordFile);
IList headers = doc.HeaderList;
foreach (XWPFHeader headeritem in headers)
{
...
}}
Подробнее здесь: https://stackoverflow.com/questions/792 ... top-margin
Мобильная версия