Free Support Forum - aspose.com

Hi i have problem to convert from Docx(which generate DocumentFormat.OpenXml.Wordprocessing) to Doc

Hi All,

I want to convert Docx to Doc, but my Docx generated by

DocumentFormat.OpenXml.Wordprocessing

below here sample code which i want to change.

//Code//

protected override Document GenerateDocument()

{

Document doc = new Document();

Body body = new Body();

doc.Body = body;

AddParagraph(body, values.FromAddress1);

AddParagraph(body, values.FromCity + ", " + values.FromState + ", " + values.FromPostalCode);

AddParagraph(body, string.Empty);

AddParagraph(body, string.Empty);

AddParagraph(body, values.LetterDate.ToString("MM/dd/yyyy"));

AddParagraph(body, string.Empty);

AddParagraph(body, values.ToName);

CreateNoticePage(body, true);

AddSectionProperties(body);

return doc;

}

///last is doc which is return, how i change Docx to Doc, i dont have document name so far it can be dynamic.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I already answered this question in the following thread

Best regards,