Can JasperReports create a text report?

By: krishna tummeti - vtummeti
Can JasperReports create a text report?
2004-07-07 10:56
I am using JasperReports and able to generate reports in HTML, PDF formats but I am wondering if I can generate simple text reports....If it is posible, can anyone please tell me what class in the JasperReports API has the ability to do so.
Thanks


By: Giulio Toffoli - gt78
RE: Can JasperReports create a text report?
2004-07-07 15:30
With iReport is shipped a JRTextExporter.
ireport.sf.net
Giulio


By: krishna tummeti - vtummeti
RE: Can JasperReports create a text report?
2004-07-08 13:10
Hi Giulio
Thank you for your prompt reply.
I have downloaded your iReport-0.3.1.
The application creates a text output(report) but I can not find the "JRTextExporter" in the lib folder.
Can you please tell me what class is implementing that functionality?
Thanks



By: Giulio Toffoli - gt78
RE: Can JasperReports create a text report?
2004-07-08 13:22
it.businesslogic.ireport.export.*

This exporter is released under GPL license but all JRDataSources and all exporters shipped with iReport will be released under LGPL with the next version of iReport (coming soon).


Giulio


By: Daren O - rckrll106
RE: Can JasperReports create a text report?
2004-07-12 06:39
Giulio

Can this be used to print formatted reports on a dot matrix? or pre-printed forms?

I have found (in experimenting) that it is tough to align jasper's positioning(i.e. - x,y) to print on pre-printed forms (line 2 - print fieldx in characters 8 to 12).

Any tricks or suggestions??


By: FRANCISCO ANTONIO VIEIRA SOUZA - chicosouza
RE: Can JasperReports create a text report?
2004-07-12 09:55
Hey Giulio please, could you tell me the Height of the textfield?
And if I consider the paper in lines, how could I manage the textfields in iReport?



By: Daren O - rckrll106
RE: Can JasperReports create a text report?
2004-07-12 10:56

https://sourceforge.net/forum/message.php?msg_id=2660481

The height of 20 (based on Giulio's suggestion) for text boxes works for me.




By: Giulio Toffoli - gt78
RE: Can JasperReports create a text report?
2004-07-12 08:19

Think to the report as a matrix of chars.
A char is large 10 pixel and height 20 pixel, so if
you have to print a file of 80 columns x 32 rows,
you need a report 800pixels x 640 pixels.

Use as font for fields Monospaced of size 13.
Remove margins.
Use iReport grid with snap to grid for field positioning.
Keep in mind that you must use the char as unit,
so a textfield can be on coords like (12,34), but
at char (1,2) = (10,40).

I hope that it's clear.

Giulio




By: Daren O - rckrll106
RE: Can JasperReports create a text report?
2004-08-13 08:54
IReport 0.3.1 was able to print a text report using the text exporter. However, (using the same xml file) IReport 0.3.2 left justifies everything starting at the first character. Does anyone know if there is a fix for this?


By: Daren O - rckrll106
RE: Can JasperReports create a text report?
2004-08-19 13:14
update to my last post - It appears the issue of JRTxtExporter left justifying is fixed in the csv. Use version 1.6, Mon Aug 2 23:30:29 2004

Giulio thanks for all your work with iReport. It has been a great tool.
ktrinad's picture
1157
Joined: Aug 9 2006 - 2:36am
Last seen: 17 years 2 months ago

2 Answers:

Hi,
Is it.businesslogic.ireport.export.* and JRDataSources are under LGPL as detailed in below mail. I couldn't find any documentation regarding this (apart from this mail).
Can any one confirm LGPL status of JRTextExporter and JRDataSources

Regards

>>By: Giulio Toffoli - gt78
>>RE: Can JasperReports create a text
>>report?
>>2004-07-08 13:22
>>it.businesslogic.ireport.export.*

>>This exporter is released under GPL
>>license but all JRDataSources and all
>>exporters shipped with iReport will be
>>released under LGPL with the next version
>>of iReport (coming soon).
vidya_shankar_m's picture
Joined: Sep 26 2006 - 6:16pm
Last seen: 17 years 1 week ago
"client" components of iReport are LGPL. If you use ant, simply type "ant jar" to get two jars in the target directory:

iReport-x.x.x.jar
iReport-utils-x.x.x.jar

the first one is GPL, the second one is LGPL (the LGPL license is inside the jar).

Unfortunatly I forgot to add the export package to the second jar. I have done it right now, so this will become effective starting from the next iReport release (scheduled for the next week).

Regards

giulio
giulio's picture
74257
Joined: Jan 2 2007 - 4:15pm
Last seen: 1 week 5 days ago
Feedback
randomness