AODL.Document.Export.Html.OpenDocumentHtmlExporter.Export C# (CSharp) Метод

Export() публичный Метод

Exports the specified document.
public Export ( AODL document, string filename ) : void
document AODL The document.
filename string The filename.
Результат void
		public void Export(AODL.Document.IDocument document, string filename)
		{
			try
			{
				this._document		= document;
				string targDir		= Environment.CurrentDirectory;
				int index			= filename.LastIndexOf(Path.PathSeparator);
				if (index != -1)
					targDir			= filename.Substring(0, index);
				string pictures		= Path.PathSeparator + "Pictures";
				string imgfolder	= Path.Combine (targDir, this._imgFolder);
				if (!Directory.Exists(imgfolder+pictures))
					Directory.CreateDirectory(imgfolder+pictures);
				this.CopyGraphics(this._document, imgfolder);
				string htmlsite		= this.AppendHtml(this._document.Content, this.GetTemplate());
				this.WriteHtmlFile(filename, htmlsite);
			}
			catch(Exception)
			{
				throw;
			}
		}