PDF 报表中文支持模块:base_report_cn
-
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 600, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 645, in create
return self.create_single(cr, uid, ids, data, report_xml, context)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 733, in create_single
pdf = create_doc(rml2, logo, title.encode('utf8'))
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/interface.py", line 199, in create_pdf
obj.render()
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/render/render.py", line 50, in render
result = self._render()
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/render/rml.py", line 36, in _render
return rml2pdf.parseString(self.xml, images=self.bin_datas, path=self.path,title=self.title)
File "/usr/local/lib/python2.5/site-packages/openerp-server/addons/base_report_cn/init.py", line 79, in convert2TrueType
data = data.replace(old, new)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 803, in parseString
r.render(fp)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 214, in render
self.docinit(el)
File "/usr/local/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 191, in docinit
pdfmetrics.registerFont(TTFont(name, fname ))
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 960, in init
canvas.drawString(x, y, "Some text encoded in UTF-8")
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 875, in init
return output.makeStream()
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 398, in init
return stm.getvalue()
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 463, in extractInfo
self.seek(string_data_offset + offset)
TTFError: Could not find PostScript font name -
[quote]Could not find PostScript font name[/quote]
报表中使用了系统中不存在的字体?
-
[quote]原帖由 [i]trempcn[/i] 于 2009-8-3 10:56 发表 www.shine-it.net/redirect.php?goto=findpost&pid=2559&ptid=447
oldev 4/3的版本, simon 6/17的版本, 和sagas 6/23的版本, 黑块块依然伫立依旧.
我是在debian5.x上的5.0.1.0版本.
用来测试的是purchase order模块.我发现系统默认的模块包都是目录形式, 我上传却是.zip的形式 ... [/quote]
我也遇到了同樣的問題呢, 我用的是V5.0.3, 希望有大大能指點一下
-
[quote]原帖由 [i]trempcn[/i] 于 2009-8-3 10:56 发表 www.shine-it.net/redirect.php?goto=findpost&pid=2559&ptid=447
oldev 4/3的版本, simon 6/17的版本, 和sagas 6/23的版本, 黑块块依然伫立依旧.
我是在debian5.x上的5.0.1.0版本.
用来测试的是purchase order模块.我发现系统默认的模块包都是目录形式, 我上传却是.zip的形式 ... [/quote]
你需要在 Administration/Modules/Update Modules 让 OpenERP 发现这个模块再安装
基本的使用请参考文档
http://doc.openerp.com/book/1/1_2_Guided_Tour/1_2_Guided_Tour_install_functionality.html#installing-a-module