I’m convert html to docx file in ASP.NET and try to open converted file in client machine. I’m using below code for this purpose but this doesn’t seems to work. No errors.
Document doc = new Document();
Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc);
To ensure a timely and accurate response, please attach the following resources here for testing:
Please attach the output Word file that shows the undesired behavior.
Please attach the expected output Word file that shows the desired behavior.
Please create a sample application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
Please ZIP and attach the requested resources here for testing. We will investigate the issue and provide you more information on it. Thanks for your cooperation.
@khurramshehzadd Have you tried using ContentDisposition.Inline? Actually saving document to the response internally the document is saved to a memory stream first and then copied to the response stream. So for testing purposes you can do the same - save your generated document to MemoryStream and then copy this stream to the response stream.