var wordsApi = new WordsApi(config);
using var requestDocument = File.OpenRead(htmlFilePath);
var convertRequest = new ConvertDocumentRequest(requestDocument, “docx”, @"C:\home\site\wwwroot", “testFile”);
var conversion = await wordsApi.ConvertDocument(convertRequest);
The file fails to convert from html to docx, Am i missing something ?
var convertRequest = new ConvertDocumentRequest(document: requestDocument, format: “docx”);
var actual = await wordsApi.ConvertDocument(convertRequest);
var fileStream = System.IO.File.Create(docFilePath);
actual.CopyTo(fileStream);
fileStream.Close();
The code is working fine on my side. Please ensure that you are using the latest version of Aspose.Words Cloud SDK for .NET and if the issue persists, then please share the error details (logs); we will look into it and guide you accordingly.