Hi guys,
We are investigating the aspose word to use in our .NET project. The task it to load the html from remote url and convert it in memory to wordx file. Everything work just fine, except css @media print styles - seems it’s not applies to the word document.
Could you please advise what i’m doing wrong?
My code is:
using (var webClient = new WebClient())
{
var dataBytes = webClient.DownloadData(url);
using (var byteStream = new MemoryStream(dataBytes))
{
var loadOptions = new LoadOptions
{
LoadFormat = LoadFormat.Html,
BaseUri = url
};
var doc = new Document(byteStream, loadOptions);
doc.Save(@"E:\Temp\converted_document.docx", SaveFormat.Docx);
}
}
Thanks,
Evgeny.