We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Want To Convert Docx to Doc using Aspose.word- not Doc.save ()

Hi I have Docx which generating by ,DocumentFormat.OpenXml.Wordprocessing, i want to convert this to Doc,below i have sample code which generating Docx,

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);
    AddParagraph(body, string.Empty);
    AddParagraph(body, "Dear " + values.ToName);
    AddParagraph(body, string.Empty);
    AddParagraph(body, "Sincerely,", true);
    AddParagraph(body, values.FromTitle, true);
    AddParagraph(body, values.FromAddress1, true);
    AddParagraph(body, values.FromPhone);
    CreateNoticePage(body, true);
    return doc;

Thanks and Regards

This message was posted using Page2Forum from About Document Conversions in Aspose.Words - Aspose.Words for .NET and Java


Thanks for your request. When you open document using Aspose.Words, this document is converted to Aspose.Words DOM. Please see the following link to learn more about Aspose.Words Document Object Model (DOM) and its relationships.
So there is no difference what the input format is, internally DOM is the same.
Best regards,