internal static string ExportAsHtml(OutlinerDocument Document, MainWindow mainWindow) { MemoryStream stream = new MemoryStream(); StreamWriter writer = new StreamWriter(stream); writer.Write(ExportToHtml.Export(Document, mainWindow)); writer.Flush(); stream.Seek(0, SeekOrigin.Begin); StreamReader reader = new StreamReader(stream); return(reader.ReadToEnd()); }
internal static void ExportAsHtml(OutlinerDocument Document, MainWindow wnd, string fileName, bool exportAsList) { if (exportAsList == true) { StreamWriter writer = new StreamWriter(fileName); ExportAsHtml_List(Document, writer); writer.Close(); } else { StreamWriter writer = new StreamWriter(fileName); string res = ExportToHtml.Export(Document, wnd); writer.Write(res); writer.Close(); } }