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.