无法在此系统上找到Wkhtmltopdf。该报告将以html格式显示

时间:2022-05-05 20:23:45

When I try to print report of any invoice this error pops up so i downloaded wkhtmltopdf from this link,http://wkhtmltopdf.org/downloads.html After that in settings->system parameter I created a key called wkhtmltopdf and its value as C:\Program Files (x86)\wkhtmltopdf but still I am not able to print reports in pdf format as this error is not going. (I am on windows and this is the image) 无法在此系统上找到Wkhtmltopdf。该报告将以html格式显示

当我尝试打印任何发票的报告时弹出这个错误,所以我从这个链接下载了wkhtmltopdf,http://wkhtmltopdf.org/downloads.html之后在settings-> system参数中我创建了一个名为wkhtmltopdf的密钥,其值为C:\ Program Files(x86)\ wkhtmltopdf但我仍然无法以pdf格式打印报告,因为此错误不会发生。 (我在Windows上,这是图像)

2 个解决方案

#1


2  

Try to set the key as 'webkit_path' and also check the version of the 'wkhtmltopdf', it should '0.12.2.1'. If you are using the config file to run Odoo, then try to provide a parameter 'bin_path' and the value as the path to your 'wkhtmltopdf' file.

尝试将密钥设置为'webkit_path'并检查'wkhtmltopdf'的版本,它应该是'0.12.2.1'。如果您使用配置文件来运行Odoo,那么尝试提供参数'bin_path'并将值作为'wkhtmltopdf'文件的路径。

#2


2  

To install wkhtmltopdf in linux/unix operating system,

要在linux / unix操作系统中安装wkhtmltopdf,

sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Finally restart odoo server

最后重启odoo服务器

#1


2  

Try to set the key as 'webkit_path' and also check the version of the 'wkhtmltopdf', it should '0.12.2.1'. If you are using the config file to run Odoo, then try to provide a parameter 'bin_path' and the value as the path to your 'wkhtmltopdf' file.

尝试将密钥设置为'webkit_path'并检查'wkhtmltopdf'的版本,它应该是'0.12.2.1'。如果您使用配置文件来运行Odoo,那么尝试提供参数'bin_path'并将值作为'wkhtmltopdf'文件的路径。

#2


2  

To install wkhtmltopdf in linux/unix operating system,

要在linux / unix操作系统中安装wkhtmltopdf,

sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Finally restart odoo server

最后重启odoo服务器