public byte[] ToArray() { if (tagVisibilityOptions != null) { docxDocument.SetTagVisibility(tagVisibilityOptions); } return(docxDocument.ToArray()); }
private static void SaveDocxFile(DocxDocument document, string fileName) { File.WriteAllBytes(string.Format(@"D:\{0}.docx", fileName), document.ToArray()); }