AODL.Document.Export.OpenDocument.OpenDocumentTextExporter.CreateOpenDocument C# (CSharp) Method

CreateOpenDocument() private static method

Create a zip archive with .odt.
private static CreateOpenDocument ( string filename, string directory ) : void
filename string The filename.
directory string The directory to zip.
return void
    private static void CreateOpenDocument(string filename, string directory)
    {
      try
      {
        FastZip fz = new FastZip();
        fz.CreateEmptyDirectories = true;
        fz.CreateZip(filename, directory, true, "");
        fz      = null;
      }
      catch(Exception)
      {
        throw;
      }
    }