Page 1 of 1
Cannot Preview Office files (Doc, docx, xlsx, xls) but i can preview PDF
PostPosted:Thu Aug 30, 2018 3:33 am
by tiyansbaby
Hi,
Just installed OKM 6.3.6 on server 2008 r2 I can preview txt and pdf. all others is not working (excel, word etc.)
thank you.
Re: Cannot Preview Office files (Doc, docx, xlsx, xls) but i can preview PDF
PostPosted:Thu Aug 30, 2018 3:58 am
by tiyansbaby
tried to add
system.openoffice.path with the value .. C:\tomcat-8.5.24\extras\LibreOfficePortable\App\libreoffice\program
i can see the previewer but it would just display on the page
"There was a problem with the conversion generation.
Please, contact your OpenKM administrator."
Update: I think this is the problem.
2018-08-30 14:41:15,128 [localhost-startStop-1] [] WARN c.o.servlet.RepositoryStartupServlet - invalid officeHome: it doesn't contain soffice.bin: C:\tomcat-8.5.24\extras\LibreOfficePortable\App\libreoffice\program
java.lang.IllegalStateException: invalid officeHome: it doesn't contain soffice.bin: C:\tomcat-8.5.24\extras\LibreOfficePortable\App\libreoffice\program
but this path has soffice.bin
Re: Cannot Preview Office files (Doc, docx, xlsx, xls) but i can preview PDF
PostPosted:Sat Sep 01, 2018 8:08 am
by jllort
The path should be C:\tomcat-8.5.24\extras\LibreOfficePortable\App\libreoffice\ ( without program ), the application will looking from the path you set a folder named program.
Ensure you do not have any libreoffice running in background, otherwise the libreoffice service will not start up.
Finally ensure into environment variables you have set the paths described in this documentation section:
https://docs.openkm.com/kcenter/view/ok ... tvariables
Re: Cannot Preview Office files (Doc, docx, xlsx, xls) but i can preview PDF
PostPosted:Mon Sep 03, 2018 9:14 am
by tiyansbaby
yep this is ok now
