开发者

Does a wysiwyg editor for report lab's rml exist?

I've searched around for drag-and-drop editors which act similarly to MSAccess report builder but generates Report Markup Language™. However, I could not find any existing products.

Could it be true then that everyone hand codes the designs of 开发者_JAVA技巧their PDFs? Surely there must be a WYSIWYG editor somewhere.

Anyone know of any? It would help tremendously.

Note. Would there be any demand for one to be built?


Thanks to OpenERP tool sxw2rml , you can use Open Office writer as a WYSIWYG editor for RML . It takes old style Oowriter files and generates clean rml out of them which you can then manipulate .

Flow that works for me is

Oowriter [doc] ----> openerp_sxw2rml.py [rml] ----> trml2pf.py [pdf]

Links:

  1. Ref Links : http://doc.openerp.com/v6.0/developer/3_11_reports/11_1_openoffice_report.html
  2. Older code of sw2rml.py can be found here http://dev.communesplone.org/trac/browser/communesplone/openerp/training/training/report/tiny_sxw2rml/tiny_sxw2rml.py?rev=3486
  3. For latest version check openerp https://code.launchpad.net/~openerp/


You can also have a look at Relatorio. It is not RML but it is WYSIWYG. http://relatorio.openhex.org/


To the best of my knowledge none exists, probably because those of us using ReportLab choose it because we chose Python first and then went looking for a tool to generate PDF reports from within Python.

What would be the purpose of a WYSIWYG RML editor? In general I think most of us generate RML (or use Platypus) in code based on the results of processing some kind of data in Python, so most of the interesting stuff has to be done in code anyway.


I have been using iReport Designer for this(Report Designer of Jasper Reports). But i am not using RML. I have a custom xml(structured more like RML) file which using my python script converts to PDF.

Since jrxml and RML are perfectly structured xml files, you can create your own python function to convert the jrxml to RML. Just that The iReport coordinates need to be converted to reportlab coordinates and create appropriate RML tags.

Cannot make use of reportlab features 100% , can use all the basic elements.

Hope this gives you some idea

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜