Preserve XML comments in iReport .jrxml files?

坚强是说给别人听的谎言 提交于 2019-12-10 14:45:01

问题


When I save the XML file in iReport, all comments are deleted.

How can I include (or preserve) comments in JRXML files?


回答1:


There is no way to preserve comments; you'd have to log a bug against iReport.

You can work around the issue by using callouts:

<property
  name="ireport.callouts"
  value="##Fri Nov 12 23:12:35 GMT-03:00 2010\\ncallouts.1.text=Hello World!\\ncallouts.1.bounds=294,80,181,73"/>



回答2:


If you can't save comments you an use CallOut component form the iReport, With CallOut you can write a comment. It's not a perfect solution but can help a lot in a case you want comments on raw report

Its V3.7+ feature, more details on- http://community.jaspersoft.com/wiki/ireport-designer-v371-release-notes



来源:https://stackoverflow.com/questions/15341057/preserve-xml-comments-in-ireport-jrxml-files

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