Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Error in .DOCX reports, but fine in PDF

By
Andrija Burlic
on 11/20/14, 10:27 AM 798 views

Hi,

I achieve my goal in creating OpenERP's report via Jasper, but somehow it only works for PDF (and CSV or XSL) but NOT in DOCX (and XSLX) format.

Error I'm getting is following:

[4]L’erreur suivante s’est produite lors de l’exportation du rapport : null

(<class 'openerp.addons.jasper_server.jasperlib.ServerError'>, ServerError('[4]L\xe2\x80\x99erreur suivante s\xe2\x80\x99est produite lors de l\xe2\x80\x99exportation du rapport\xc2\xa0: null',), <traceback object at 0x00000000076E7248>) 

Here is picture:                        http://screencast.com/t/plNcvmYn2ocW

Since the same code works for .PDF, can someone gives me hit what's wrong with creating .DOCX files?

Thanks in advance!

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 11/20/14, 10:37 AM

my guess is it's unicode problem.. 

you are using special chars ( ČĆŽŠĐčćžšđ) in names (products or something)

as proof of concept, try the same report, but make sure there is no such chars, if it works then you know where to look ;)

hope it helps
 

Hi, thank you for your answer. i already did that check, since I was thinking that similar issues can be the reson for this issue. But, it won't open even blanko report, so I must exclude it from further investigation. Also, I noticed that in the code in jasper_reports method there is not explicit code for DOCX format, maybe there can be root of my problem?

Andrija Burlic
on 11/20/14, 11:00 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/20/14, 10:27 AM
Seen: 798 times
Last updated: 3/16/15, 8:10 AM