• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Java swing program for generate printable invoice!

 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 6969
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 6969
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
A magnificient life is loaded with tough challenges. En garde tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic