Displaying contents of an Excel file in a Java SWT GUI - java

I am developing a password manager within Eclipse and I am using Windowbuilder to help. I am using SWT, and am trying to make use of an Excel file which would store information such as usernames, passwords and additional notes
This is what I have so far when the program is launched
The left part, where there is a patch of white is where I want a menu to navigate through the Excel file, but I can not start that yet as I do not know how to actually display the Excel file. The area on the right which is not being used is where I want the information to be displayed
This is a sketch of what I would want it to be similar to
The Excel file can be any type, as long as it works with the GUI. Any help would be appreciated

one suggestion is to create a workbook with multiple sheets by the name of your menu like Gmail, accounts etc. then create columns by name of the information you want to store which would be website, username, password etc. Then Use apache POI to read the file in java. This Tutorial will help you in reading the excel file.
Regarding display of excel file, You can use Table Editor to display your data.

Related

What do you call the process of exporting information and data to a PDF document template?

I want to create a program in Java where the student information will be embedded to a specific template and generated into a PDF. The PDF may contain tables, image, and text.
I just want to know this technique? Here is a sample output below:
Thanks in advance!
I tried looking for the term, and I was not able to find it. I am curious about it since I saw the operator in my cashier where they used a Java program that can generate the PDF that contains the student information from a database and print it.
There are a few useful library for generating PDF document in Java,
I suggest you to look at this library : Apache PdfBox
also you can check this question for creating table:
Creating table in pdf box

Convert Html Form to Pdf along with radio buttons and checkbox in php

I have a form with 100's of fields along with radio and check-box. What will be the best way to create PDF from it. Here is the link to my form 'http://182.71.22.42/ccs/'. I have used 'JSPDF' library but it just prints text only in PDF not any input field. I have also tried 'TCPDF' but I don't know how to show check-box and radio buttons and also I have to do css for 'TCPDF' also. Because TCPDF does not pick any HTML form css..
Please help me with this. Thanks in advance.
I like pdftk (PDF Tool Kit). It's fairly easy to use. There is a GUI, but there's also a command line tool -- which is obviously what you'll want to use. You'll install the pdftk program on your server, and run it from your PHP script.
PDFTK General Tutorial
Firstly, a blank PDF file should reside on your server. The empty fields should be labeled such that you can reference them.
When a user inputs information via your form, the data should be sanitized and inserted into an FDF (Forms Document File).
Once you have your FDF completed, in your PHP script, run:
exec('pdftk blank.pdf fill_form new.fdf output finished.pdf');
Where blank.pdf is the empty PDF, new.fdf is the FDF you just created, and finished.pdf is the name of the file you want pdftk to create for you.
Thanks for your replies .I found solution in TCPDF to show checkboxes. Just use different images, one for checked checkbox and other for unchecked

Adding data in Excel file without closing it

I am currently using Apache POI to enter data into Excel file. The only problem is I can not keep the file open if I have to append data to the same file. Are there any specific sample codes which would allow me to do so?
My basic requirement is to fetch Runtime data from a place (this I am able to do) and add it to the Excel sheet while the file is still open.
Any suggestions?
I don't think that this is possible without a C# addon or some kind of macro. You could write a simple C# addon for Excel that connects to your java programm and recieves the realtime data. The addon will write it to the spreadsheat then.

how to use Excel in android application

So, i building an application that doing that:
when the user write a name in edittext and click a button, i want the application to give the user some information about this name,
I have an Excel with that information, how can i add this Excel into my apk
And how can i read it from there? for each name his specific information..
the Excel look like that:
http://s18.postimg.org/ofcgudlk9/image.jpg
So for example, when the user write "android" in the edittext and click the button, i want a toast that will show "number: 1234 , more: good"
Any Idea?
you can use JExcelApi library to read or write to an Excel file , you have to put your excel somewhere in Sdcard then with jxl you can read or write to it.
Don't put the Excel file in your app.
You can export the excel file as a CSV file.
Then you can use the csv file with your app or you can use it to create a SQLite database and distribute it with your app.
The csv or SQLite file goes into the assets directory.
You can use OpenCSV to parse the CSV file.
To distribute an SQLite file with your app you can use SQLiteAssetsHelper.
I would prefer Json instead of using an excel or CSV file as suggested in other answers. With Json you can easily read and search through your data.
So here is the approach,
Convert your Excel to Json here -> http://shancarter.github.io/mr-data-converter/ Note: Just a service
that I found in Google. You may search for better services.
Now place the Json in /res/assets folder. If there is no assets folder then create it.
Now Load the Json at the start of your application. Google about parsing Json files, If you are not aware of it.
Whenever user enters something, Please search the Json and show the respective content.
Hope it helps.
you may try use POI HSSF/XSSF to just read the excel file.

Converting JTable into PDF File

How to convert JTable into .pdf file format using PDFjet. I want to show the report for gym management system in Java using eclipse. I want to show logo, administrator's details and then table of report. I already visit Example_08, but I am not satisfied with that answer.
You should check out Example03 and combine that with Example08.
Also - what is the specific problem?
did you get a (basic) PDF from that lib?
where you able to add own data to the PDF?
can you change layout?

Categories