/// <summary> /// returns the root HTML we'll use to generate everything else; /// this is tracked in the _HtmlFile object, which is always FileStorage.Memory /// </summary> void DownloadHtmlFile(string url) { if (url != "") { this.Url = url; } _HtmlFile.WasAppended = false; _HtmlFile.Download(); if (!_HtmlFile.WasDownloaded) { throw new Exception("unable to download '" + this.Url + "': " + _HtmlFile.DownloadException.Message, _HtmlFile.DownloadException); } }
/// <summary> /// returns the root HTML we'll use to generate everything else; /// this is tracked in the _HtmlFile object, which is always FileStorage.Memory /// </summary> void DownloadHtmlFile(string url) { if (url != "") { Url = url; } _HtmlFile.WasAppended = false; _HtmlFile.Download(); if (!_HtmlFile.WasDownloaded) { throw new Exception(string.Format(Strings.MhtBuilder_Error_UnableDownload, Url, _HtmlFile.DownloadException.Message), _HtmlFile.DownloadException); } }