Error when using BindHTMLFromURL

Hi,

We are getting an error ‘Unknown color: 692922’ when pointing to a .aspx form we developed and are trying to save using aspose.PDF

Any thoughts?

Also, considering using the BindHTML from a stream in memory. I have a loop that iterates through all the controls on the page and renders the controls to an HtmlTextwriter. but I am not certain that is the correct approach to get the contents of an .aspx page into a memory stream. Any chance you have an example of that? Thanks.

Please attach the aspx file for our testing.

For take a stream object as parameter in BindHTML, there is no a strict approach how to load this stream. As a simple way, you could just code as follows:

Pdf pdf = new Pdf();
MemoryStream ms = new MemoryStream();

//Load ms with HTML content.

pdf.BindHTML(ms);
pdf.Save("Test.pdf");