• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Java swing program for generate printable invoice!  RSS feed

 
Ranch Hand
Posts: 628
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I know that there are multiple API libraries for generate files like pdf, doc, excel etc.
But As I am searching about invoice related.
I have excel file in that I kept invoice format. but read it & modify its values & save it in different name, is very tedious job. New file might be editable via excel editors. New file also not add company logo & formating like I design in format file.
Is there other way to do it?
Is there any API for it? pdf might be right choice, I am thinking to use pdfbox API for this.
 
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand what exactly you're asking.

If the task is to modify Excel files programmatically then Apache POI is almost certainly the best tool available.

If the task is to create PDF files, then PDFBox or iText would be good choices. Note that iText versions 5 and newer most likely will require you to obtain a license, whereas iText 2 does not.
 
Mandar Khire
Ranch Hand
Posts: 628
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim Moores,
I want to generate following kind of invoice. Image I got via Google.

Currently I am using Excel sheet as format of empty invoice (which has company logo in header) look like above.
Fill it manually & save it as different name. In whole process No Java.
But now I am trying to use java program which help me to generate invoice/bill etc.
For that rest of program is ready but confuse about
1. Should I use my empty format of excel sheet & by java using Apache POI generate invoice?
2. Or use PDFbox?
Which way give me beautiful invoice?
 
Mandar Khire
Ranch Hand
Posts: 628
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should I use BIRT Runtime Release Build: 4.8.0 ?
Which one is easy to learn & use?
 
Tim Moores
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by defining what the output should be. PDF and XLS are very different file formats, which lead to very different ways you can use them. Do you want something to print? Then PDF would seem to the medium of choice. Do you want something to edit? That would rule out PDF.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!