0

Hi

I am trying to genarate report in java.

my basic requirement is like:

1. i have to print sales invoice in .txt format.
2. In application, user will select sales invoice no in drop down list.
after clicking print button, user can show his invoice .
3. invoice contain only three column ( simple invoice format)

1. item name 2. rate. 3.qty 4. amount

finally in detail, it will print Total amount.

---------------------------------------------
item name Rate Qty Amount
---------------------------------------------

ABC 10 10 100
PQR 05 10 50

--------------------------------------------
Total: 150
--------------------------------------------


Whether it is possible to print above format report without using
any report tool like Eclipse Birt,Jasper Report, IReport


Kindly suggest any solution.

Thanks

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by JamesCherrill
0

Hi
Can you give me some more explanation above lines.
Thanks

Just a series of print statements, with a little loop to print the items - like this (pseudo code, not Java syntax)

print "--------------------------------------"
print "item name ..."
...
for each item in invoice
   print item.name, item.rate ...
print "--------------------------------------"
print "Total: " + invoice.total
...
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.