I am making an application, in which some billing work is required. The bills are to be created using this software and to be printed also by clicking the print button.
Now i have no clue that how to do it. The bill format must be pre-defined.
I am ,making this application using swing in eclipse IDE.
Please guide me that what should i study and how to do it.. as it is too urgent.
I would probably create a PDF file, since that has the advantage that you can also store it as a file, and thus make available to the user later for reference. You could use a library like PDFRenderer to print it (assuming that no printer is available that can print PDFs natively).
Ping & DNS - updated with new look and Ping home screen widget
I would probably create a PDF file, since that has the advantage that you can also store it as a file, and thus make available to the user later for reference.
And/or it allows you to email a PDF of the bill directly to a customer rather than having to print and send it.
Joined: Feb 14, 2013
Thanks for the reply. I want it too to create the pdf file.
But, i have no idea that how will i create it. I want it to be in the same way as Ms-Word, so that the user fills all the details in the frame.. some values will be retrieved from database like bill no, client name, client address etc.. and gives the print command and a pdf is generated which has a pre-specified format.
Please let me know the steps i have to follow to get the desired results.. as i have know knowledge at all.
Some days ago i wrote this code to print the frame's component data. But as of now, it won't work..