AODL.Document.Export.OpenDocument.OpenDocumentTextExporter.WriteSingleFiles C# (CSharp) Метод

WriteSingleFiles() приватный Метод

Writes the single files.
private WriteSingleFiles ( System document, string filename ) : void
document System The document.
filename string The filename.
Результат void
    private void WriteSingleFiles(System.Xml.XmlDocument document, string filename)
    {
      try
      {
        //document.Save(filename);
        XmlTextWriter writer = new XmlTextWriter(filename, System.Text.Encoding.UTF8);
        writer.Formatting = Formatting.None;
        document.WriteContentTo( writer );
        writer.Flush();
        writer.Close();
      }
      catch(Exception)
      {
        throw;
      }
    }