コード例 #1
0
        public string SaveMarkDoc(string _fileName)
        {
            MemoryStream stream = new MemoryStream();

            document.RemoveEndMark();
            document.SaveAs(stream);
            stream.Position = 0;
            Aspose.Words.Document doc = new Aspose.Words.Document(stream);
            string fileName           = _fileName + "_" + DateTime.Now.ToString("yyyyMMddhhmmssfff");
            string filePath           = string.Format(@"{0}{1}.doc", this.configManager.getConfig("path.doc"), fileName);

            doc.Save(filePath, Aspose.Words.SaveFormat.Doc);
            return(filePath);
        }