AODL.Document.Import.OpenDocument.OpenDocumentImporter.Import C# (CSharp) Method

Import() public method

Imports the specified filename.
public Import ( IDocument document, string filename ) : void
document IDocument The TextDocument to fill.
filename string The filename.
return void
		public void Import(IDocument document, string filename)
		{
			try
			{
				this._document		= document;
				this.UnpackFiles(filename);
				this.ReadContent();
			}
			catch(Exception ex)
			{
				throw new ImporterException(string.Format(
					"Failed to import document '{0}'", filename), ex);
			}
		}