This question has been flagged
1 Reply
3222 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!

Avatar
Discard
Best Answer

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
 

Avatar
Discard
Author

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?