|
public string ExportSFDT([FromBody]SaveParameter data)
{
Stream document = Syncfusion.EJ2.DocumentEditor.WordDocument.Save(data.content, Syncfusion.EJ2.DocumentEditor.FormatType.Docx);
string path = System.Web.HttpContext.Current.Server.MapPath("~/App_Data/");
FileStream file1 = new FileStream(path+ "/LineSpacing2.docx", FileMode.OpenOrCreate, FileAccess.ReadWrite);
document.CopyTo(file1);
document.Close();
return "Sucess";
}
public class SaveParameter
{
public string content { get; set; }
}
|