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