i-report 3.7.6 error while editing JRXML

廉价感情. 提交于 2019-12-13 01:27:01

问题


I have a problem with editing XML files with i-Report 3.7.6. My XML file was created with i-Report 2.0.2 and later saved in JRXML format with i-Report 3.7.6. When I click on the XML file now, i-Report gives me the error:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!

Program: ...rogram Files\Java\jdk1.6.0_23\jre\bin\java.exe
File: ../../../src/share/native/sun/font/t2k/t2kstrm.c
Line: 132

Expression: pos <= t->maxPos

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort   Retry   Ignore   
---------------------------

How can I fix this?


回答1:


Add this text (or similar from another template) in XML mode after <kbd><</kbd>property name="ireport.y" value="0"/>:

<kbd><</kbd>style name="Sans_Normal" isDefault="true" fontName="DejaVu Sans" fontSize="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<kbd><</kbd>style name="Sans_Bold" fontName="DejaVu Sans" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<kbd><</kbd>style name="Sans_Italic" fontName="DejaVu Sans" fontSize="12" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false"/>



回答2:


This Assertion means that your fonts are corrupted



来源:https://stackoverflow.com/questions/4345981/i-report-3-7-6-error-while-editing-jrxml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!