453
questions
0
votes
1
answer
8k
views
how to convert byte array to excel file in spring boot
I want to create an excel file from byte[]. and I'm using jxl library in spring boot.
I need a file with XLS format, convert to Base64 and return that.
ByteArrayOutputStream outputStream = new ...
0
votes
1
answer
966
views
transferring data read from excel to array
I want to transfer this data to an array to perform mathematical operations with the data I read from excel. how can I do that?
import java.io.IOException;
import jxl.Cell;
import jxl....
5
votes
4
answers
2k
views
smallest valid base64 AVIF image
I would like to find the smallest possible, but valid (viewable) base64 encoded AVIF string for testing browser image support with javaScript.
I'm using this set:
const imgs = {
jxl: "/...
1
vote
2
answers
738
views
how to lock cell while creating an excel (xls) file using a java library
how we can create an excel file (xls) using any java library in a way so that cells are not selectable, i.e.: the user should not be able able to select or copy any of the data.
I know we can achieve ...
1
vote
1
answer
378
views
Inserting new column in existing xls file keeping the format intact In Java
I want to insert a new column in between the existing columns of the excel which is in .xls format using Java retaining the existing format. Is there any api to do so?
0
votes
1
answer
3k
views
get column value from excel based on column names in java
I want to read a excel sheet based on column name in java.
I want to get column values correponding to column name like get TXT_Policy_no in policy no string etc.
as the excel sheet values can be ...
0
votes
0
answers
686
views
Error "open failed: ENOENT (No such file or directory)"
I have a code that worked well on eclipse and now I moved to Android Studio and there for some reason I cannot open the .xls file.
I am using jxl librariy, so I added the jar to the project's lib, and:...
0
votes
0
answers
304
views
How to create and update Excel files through Java using JXL library?
Everything I have seen on this issue has been in a main method, however, I am working on a larger system and require a class that can create an Excel workbook, sheets and then write into a cell by the ...
0
votes
0
answers
178
views
Reading a xls file using POI or jxl which actually neither in xls file nor a .xlsx throws Unable to recognize OLE stream
I want to open a .xls file which not supported by Apache POI since the file is neither a .xls file nor a
.xlsx one. If you open it in a text editor, you'll see that instead it's
HTML!
Please see ...
1
vote
2
answers
1k
views
Add a new sheet in an existing workbook with java jxl
I have an application in Java and I manage Excel workbooks with JXL API.
I would like to create a new sheet in an existing workbook that already has a sheet (so I want to create a second sheet).
But I ...
0
votes
0
answers
91
views
Changing tabs color of excel sheets with Java JXL library
The question I have is, is it possible to change the color of the tabs in an excel by programming them with the JXL library?. I can’t attach code since I don’t even know how I would do it. Thank you ...
1
vote
0
answers
49
views
How can I mask a cell with ***** using jxl
I'm generating an excel using Jxl and I need to mask a cell which will be used to contain a password. In excel this can be done by formating your cell to a custom format type: ";;;**".
Does anyone ...
0
votes
1
answer
1k
views
Convert a File with .xls extension but save as xml spreadsheet 2003 to .xls File Formate
i have a file .XLS extension but save as XMl spreadsheet 2003 , want to read the file and convert it into .XLS Extension with java code my code is below -
public class ExcelImport {
public ...
0
votes
0
answers
86
views
Excel file downloaded without VBA module
I have developed a code which allows me to download an Excel file based on a prepared template that contains vba code and macro.
The code below allow me to create calendar workbook from template file....
1
vote
2
answers
5k
views
How to write an array data into excel using java
I have an array of Strings that needs to be inserted into an Excel sheet
I tried with the below code snippet, but only the first value is inserting and for the rest, I am getting null in my console. ...
1
vote
0
answers
51
views
.xls file corrupted and without template with warning cannot read name?
After downloading my .xls file, it brings me data in column but Excel shows me a warning which is:
office has detected a problem with this file, Editing may harm your
computer.
The main purpose that ...
0
votes
2
answers
2k
views
How to Delete or Remove empty rows in Excel sheet using java
Input Excel file.....
25010082512 25002207512 1044 1044 NGN NGN
36620841728 36617009228 1066 1066 NGN NGN
import java.io.File;
import java.io.FileInputStream;
import java.io....
1
vote
0
answers
152
views
ikvm Unhandled Exception: System.TypeLoadException
I am new for IKVM. I just created the java project with JXL dependent jar to read and write excel files. and converted this project to DLL files by using IKVMC command.
ikvmc { jxl.jar -out:jxl.dll }...
0
votes
0
answers
149
views
How to fix Error: Program type already present: jxl.CellView when importing jxl.jar library
I added jxl.jar library in order to be able to write and read excel files. But when I run the program I get one of these errors:
Error: Program type already present: jxl.CellView
Error: Program type ...
1
vote
1
answer
410
views
Java Jxl read/writing to workbook
I have an asset spreadsheet(excel) with decimal mumbers (ie. 30.50), but can only run the code below if the cells are formatted to "no decimal places" (30) otherwise it gives me the error below.
The ...
0
votes
2
answers
3k
views
RowsExceededException when using big number of rows
I try to create a very large excel file with java jxl, a file of more than 20 gb, the problem is that when I try to make a loop a little bigger to generate more line, I have a error message
"jxl....
0
votes
1
answer
1k
views
Running a JAVA Program with a Button (GUI)
I've been stumped on this all day, despite hours of research. Below is a basic idea of my program. It extracts data from links and puts it into a spreadsheet, and it can run for hours at a time. My ...
0
votes
1
answer
52
views
JXL Changing Columns for JSOUP-based Application
Currently, this program will run down a column of URLs and output the selected data to the neighboring cell. I can set which column it starts on, but that is all I can do. Right now, I only have it ...
0
votes
0
answers
93
views
Problem in Writing data to Excel Sheet using Java
I have to write some data to an Excel sheet using Java. I searched a video lecture on youtube -https://www.youtube.com/watch?v=OHodZArY9ns. Their code is perfectly working in the video lecture but ...
0
votes
0
answers
207
views
How to add an Image from Blob in a Cell from sqlite?
I want to use my database that contains string data and an image to convert them to excel. Then, I have stored in my sqlite a series of data string and an image (Blob) but I can not understand how to ...
0
votes
1
answer
103
views
How to solve FTP get excel file crash?
I try to get excel file through FTP server. I checked my app has connected to server. And pop out the toast that "xls linked" then app crash immediately. I had tried if the problem of file type is ...
1
vote
1
answer
126
views
xls file corrupted after updating existing xls file using jxl
I'm updating the content in the 'Microsoft Excel 97-2003 Worksheet (.xls)' using 'jxl jar'. Everything is fine with the code. But when open after update, it is showing "We find a problem with the ...
0
votes
2
answers
500
views
Prevent Excel making URL clickable in file created by JXL API
I use JExcelApi (JXL, version 2.6.12) to create an Excel file.
If a cell has an URL as value, then that cell is displayed in Excel* as plain text, but if the user double-clicks it (an thus enters ...
0
votes
3
answers
342
views
Weird character conversion, need help clarifying
So i am writing a program that takes data extracted to an excel sheet from a web page and then prints it to a text note. However, a weird problem that I have encountered is that from the excel sheet ...
0
votes
1
answer
1k
views
java split a string and put into an array position
So i am using string.split because i need to take certain parts of a string and then print the first part. The part size may vary so I can't use substring or a math formula. I am attempting to store ...
1
vote
1
answer
343
views
If string contains with get getContents (JXL)
UPDATE: POSSIBLE SOLUTION POSTED BELOW BY MYSELF
I need my program to read a cell. If it contains a specific string, lets say the name "Jacob", then it needs to execute a certain static function ...
2
votes
1
answer
131
views
JXL(Java) change to 1904 date system
I need to change date system to 1904 calendar using JXL (rather than 1900 calendar).
Everytime I write something in Excel using JXL API, date system is set to default and I need to change date system....
0
votes
1
answer
148
views
JXL not writing more than 1 row to XLS file
I'm using JAVA with JXL and am trying to write the results of my program to an XLS file.
The code I've written is as below.
The problem I'm facing is it writes only the first row of data in the XLS ...
0
votes
2
answers
260
views
divide excel sheet based on spesific cell values
i have a data sheet in excel about 950000 row with 7 col.and i want to divide it based on V5 col data. V5 holds data for time in seconds into one hour so i need to divide the data into sheets each ...
0
votes
1
answer
367
views
Writing to excel using jxl, getting indexOutofBoundException error
public static void main(String args[]) throws BiffException, IOException, RowsExceededException, WriteException{
WritableWorkbook workbookCP;
try {
Workbook workbook = Workbook....
3
votes
1
answer
4k
views
Apache POI generates corrupted Excel File
I am using Apache POI to create an excel file with the help of database. I tried searching a lot with different codes and all I got was corrupted excel sheet over and over again. As of now, here is ...
0
votes
0
answers
836
views
Getting exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 , while generating excel file using java
We are getting below exception in log during to generate excel file , we are using jxl version 2.6:
SEVERE: Servlet.service() for servlet [webui] in context with path [/newui] threw exception [...
0
votes
1
answer
846
views
jxl - "The file format and extension don't match"
I've written a program to create and write an Excel sheet, close it, and then access it soon after. However, java always gives me the same jxl.read.biff.BiffException: The input file was not found ...
1
vote
1
answer
170
views
jxlsx - GridCommand pass method
In that example we're passing properties to GridCommand:
Context context = new Context();
context.putVar("headers", Arrays.asList("PAYMENT", "NAME"));
context.putVar("...
0
votes
0
answers
140
views
Exporting to Excel using an intent and directly opening it
I made a code to export excel from intent android, but this code didn't work and show this alert .
Intent intent = new Intent(Intent.ACTION_VIEW);
if (Build.VERSION.SDK_INT >= android.os....
1
vote
1
answer
171
views
Java - Select the line to read data in JXL
My spreadsheet has a label and I would like to read it from line 2.
But I'm not getting a simple way to do this in JXL, I've read the documentation and can not implement it.
I tried String login = ...
1
vote
1
answer
2k
views
Reading EXCEL file in Java using jxl
I have a problem with reading xls files into Java usin jxl library.
Could you tell me what is wrong my code? I attached below. Something is wrong wif fillData method. The console returns:
Exception ...
1
vote
1
answer
784
views
How to get Method name in testng using @BeforeTest annotation
I'm working on rest API testing using Rest Assured and i'm using @BeforeTest annotation to call jxl data and write the results into it with the help of @Dataprovider annotation to pass test data.
But ...
0
votes
0
answers
63
views
Java returns error message for a jar that is not included in the program
Somehow, if I create a new java project with an almost empty class, Java returns the following error message:
java.lang.ArrayIndexOutOfBoundsException: 0
at jxl.biff.drawing.PNGReader.main(PNGReader....
0
votes
1
answer
191
views
Emulate excel calculus behavior in Java for testing purposes
I'm implementing in Java an algorithm written with Excel formulas, based on Markov's chains, and comparing the results with Jxl library. The problem is, as I have read, that the two languages haven't ...
0
votes
1
answer
2k
views
get number of rows of a particular column in given excel using Java [closed]
I've tried a couple of for loops, but that doesn't help me. Can anyone help me on this?
Following is there for to get a number of columns of a particular row in given excel using Java. But I want ...
0
votes
1
answer
449
views
Why am I getting org.openqa.selenium.StaleElementReferenceException exception in my code given below?
Hi Everyone I was trying to make a Selenium Script to verify the validations on Username and Password Text Box by fetching the data from Excel file (.xlt format) but whenever i am running my code it ...
0
votes
1
answer
271
views
Why JXL not working inside loop
Here is my JXL and Jsoup code
public static final String EXCEL_FILE_LOCATION = "E:\\xll.xls";
public static WritableWorkbook myFirstWbook = null;
myFirstWbook = Workbook.createWorkbook(new File(...
0
votes
1
answer
430
views
Keeping Pivot Table and Formating intact in JExcel
I am trying to write data to an excel sheet using JExcel. I have an excel file placed on disk and I opened it using JExcel and then created a Writable Workbook.
The Excel workbook contains sheets ...
0
votes
0
answers
76
views
Reverse Geo Coding
We are creating excel file in java using jxl. For Every record based on latitude and longitude we are using reverse geo coding and fetching address of cordinates and then adding into cells. If records ...