问题描述
我有一个使用ASPxRichEdit来编辑文件doc或docx的Web应用程序,我从iframe调用此Web应用程序,当有1个调用时,它有2个调用,ASPxRichEdit无法保存内容编辑,并且有时它显示警报框会话超时。有人可以告诉我如何解决该问题
这是我的代码:
filepath = Request.QueryString["fileurl"];
localpath = WebConfigurationManager.AppSettings["LinkFile"];
isDuThao = Request.QueryString["isDuThao"];
isEdit = Request.QueryString["isEdit"];
if (filepath != null)
{
Base64EncryptDecryptFile decryptFile = new Base64EncryptDecryptFile();
string decode = Base64Decode(filepath);
decode = decryptFile.DecryptData(decode);
decode = decode.Remove(0,1);
baselocalpath = Path.Combine(localpath,decode.Replace('/','\\'));
baselocalpath = baselocalpath.Replace("%20"," ");
baselocalpath = HttpUtility.UrlDecode(baselocalpath);
}
FileInfo fi = new FileInfo(baselocalpath);
string Dir = fi.DirectoryName + @"\\";
string ext = fi.Extension;
string NameFile = fi.Name.Replace(ext,"");
PathFile = Dir + NameFile + DateTime.Now.ToString("hhmmss") + ext;
using (FileStream fileStream = File.Create(PathFile))
{
if (ext.ToUpper() == ".doc".ToUpper())
{
ASPxRichEditView.SaveCopy(fileStream,DevExpress.XtraRichEdit.DocumentFormat.Doc);
}
else
{
ASPxRichEditView.SaveCopy(fileStream,DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)