首页 > 其他分享 >PageOffice保存时The file format is not allowed

PageOffice保存时The file format is not allowed

时间:2023-11-02 10:15:24浏览次数:27  
标签:pageofficeCtrl WebOpen format 保存 file allowed

情景描述:最新用PageOffice做word在线编辑功能,但是保存时一直报错The file format is not allowed。如下图:

问题分析:把word文件放到官方demo中,编辑保存没有问题,最后排查到是pageofficeCtrl.WebOpen传入的参数DocumentURL问题。

//保存时出现错误
pageofficeCtrl.WebOpen("C:\\Resource\\FileManage/2023/11/01/2023110209125700000AR.docx", OpenModeType.docRevisionOnly, "tom");
//保存时成功
pageofficeCtrl.WebOpen("C:\\Resource\\FileManage\\2023\\11\\01\\2023110209125700000AR.docx", OpenModeType.docRevisionOnly, "tom");

解决方案:参数DocumentURL不要用/,虽然可以正常加载word文件,但是保存时就有问题。

标签:pageofficeCtrl,WebOpen,format,保存,file,allowed
From: https://www.cnblogs.com/oBehavior/p/17804766.html

相关文章

  • Redis通过复制rdb文件方式同步线上数据到本地以及提示:Can't handle RDB format versi
    场景Redis的持久化机制-RDB方式和AOF方式:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/105052841Redis持久化机制导致服务自启动后恢复数据过长无法使用以及如何关闭:https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/130237326以上对于redis持久化......
  • DecimalFormat的基本用法
    一、舍入模式RoundingMode1、舍入模式RoundingMode为截断Downpublicstaticvoidmain(String[]args){doublenum=11.256;DecimalFormatdf=newDecimalFormat("#.##");//格式化为两位小数//指定RoundingMode舍入模式df.setRoundi......
  • 今天就做一个小网站原型,要为自己写个profile页呀
     axurerp的使用里面,要活用母版,给母版添加事件省力创建 本地发布的文件在:https://files.cnblogs.com/files/hualiu0/profile_home.7z?t=1698802282&download=true......
  • Please take a look at the provided example service unit files in this directory,
    安装Redis,执行install_server.s脚本时,出现如下报错: 解决方案,注释掉install_server.sh中的部分代码,注释代码详情如下: 再次执行install_server.sh脚本,结果如下: ......
  • uboot的Makefile添加c文件复制功能--Apple的学习笔记
    一,前言如何能快速知道哪些c被编译到boot了。通过看编译信息,通过看编译完成后的ouput文件夹中的o文件,能否直接copy这些c文件到某个文件夹中,这样搜索看代码定位比较容易。若makefile自己有全部的c路径,那么我做个脚本后处理下,copy这些路径的c即可,另外,makefile居然有复制o文件,那么我只......
  • linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方法
    https://blog.csdn.net/moveym/article/details/125569233 一、首先了解Linux系统下这两个命令的区别yum:属于:RedHat系列常见系统有:Redhat、Centos、Fedora等apt-get:属于:Debian系列常见系统:Debian、Ubuntu等#查看当前系统版本cat/etc/redhat-release网易镜像系统官网......
  • linux系统报Too many open files的错误
    1、https://www.cnblogs.com/zj-cloud/articles/17169769.html一、openfile文件描述符不够故障现象:程序会报Toomanyopenfiles的错误,是因为openfiles数目不够 排查思路:1、ulimit-a或ulimit-n查看当前最大打开的openfile数量 默认是1024修改/etc/security/lim......
  • [ACTF2020 新生赛]BackupFile
    题目提示需要寻找备份文件。通过字典,找到后台存在一个名为:index.php.bak的文件,打开后源码如下:<?phpinclude_once"flag.php";if(isset($_GET['key'])){$key=$_GET['key']; //判断一:是否为数字,此处无法绕过if(!is_numeric($key)){exit("Justnum......
  • File --JAVA
    File--JAVA构造方法方法说明publicFile(Stringpathname)根据文件路径创建对象publicFile(Stringparent,Stringchild)根据父路径名字字符串和子路径名字符串创建文件对象publicFile(Stringparent,Stringchild)根据父路径对应文件对象和子路径名字符......
  • My Profile
    AboutMeHi,I'mZhihaoLi.Thisisabriefintroductionaboutme.IamajuniorstudentatXidianUniversity,andmyfavoriteresearchdirectionisembeddedsystemsandartificialintelligence.Asanewblogger,Iamveryexcitedtosharewithyout......