HtmlLoadOptionsWebRequestTimeout Property

The number of milliseconds to wait before the web request times out. The default value is 100000 milliseconds (100 seconds).

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public int WebRequestTimeout { get; set; }

Property Value

Type: Int32
Remarks
The number of milliseconds that Aspose.Words waits for a response, when loading external resources (images, style sheets) linked in HTML and MHTML documents.
Examples
Shows how to parse HTML document with conditional comments like "<!--[if gte vml 1]>" and "<![if !vml]>".
HtmlLoadOptions loadOptions = new HtmlLoadOptions();

// If value is true, then we parse "<!--[if gte vml 1]>", else parse "<![if !vml]>"
loadOptions.SupportVml = true;

// Wait for a response, when loading external resources
loadOptions.WebRequestTimeout = 1000;

Document doc = new Document(MyDir + "Conditional comments.htm", loadOptions);
doc.Save(ArtifactsDir + "HtmlLoadOptions.SupportVml.docx");
See Also