Aspx to docx

i am evaluating the product… I need to convert aspx to docx which is actaully my report page with charts and other images… But its showing Evaluation Only. Created with Aspose.Words. Copyright 2003-2008 Aspose Pty Ltd.

This message was posted using Email2Forum by alexey.noskov.

Hi

Thanks for your request. This occurs because you are using Aspose.Words in evaluation mode and Aspose.Words inserts evaluation watermark at the beginning of the document.
If you want to test Aspose.Words without the evaluation version limitations, you can request a 30-day Temporary License. Please refer to
https://purchase.aspose.com/temporary-license
Best regards.

Hi,
My report page consists of numerous charts and i require to produce the report in docx format… is it possible to have this conevrsion

Hi

Thanks for your inquiry. Yes, of course, you can achieve this. Actually ASPX page is HTML, and Aspose.Words supports HTML. For example, you can try using the following code to load your HTML from URL:

string url = @"http://localhost/mysite/mypage.aspx";
string baseUrl = @"http://localhost/mysite";
//Prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "GET";
request.ContentType = "text/html";
request.UserAgent = "Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0";
//Execute the request
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
//We will read data via the response stream
Stream resStream = response.GetResponseStream();
//Write content into the MemoryStream
BinaryReader resReader = new BinaryReader(resStream);
MemoryStream docStream = new MemoryStream(resReader.ReadBytes((int)response.ContentLength));
Document doc = new Document(docStream, baseUrl);
//Save document
doc.Save(@"out.docx");

Hope this helps.
Best regards.