Apache POI Tutorial Part8 - How To Read Data from Database and Write into Excel #ApachePOI

Apache POI Tutorial Part8 - How To Read Data from Database and Write into Excel #ApachePOI

SDET- QA

3 года назад

16,133 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kiran Kumar
Kiran Kumar - 02.09.2023 16:11

Super

Ответить
Shilpa Shravge
Shilpa Shravge - 17.07.2023 12:54

thank you. it helped :)

Ответить
Genshin Guy
Genshin Guy - 05.04.2023 17:13

Hiii sir, im facing one error, please help me with this...
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.apache.poi.xssf.usermodel.XSSFRow.getCell(int)" because the return value of "org.apache.poi.xssf.usermodel.XSSFSheet.getRow(int)" is null

Ответить
bhabani tripathy
bhabani tripathy - 17.08.2022 21:12

Nice explanation sir, I have got work to fetch data from multiple tables into excel using Java. Can you please help me out sir. It will be really grateful of you. How can I reach you for my doubts?

Ответить
Ram RK
Ram RK - 03.08.2022 01:24

Awesome 👌👌👌👌

Ответить
Samrat Julme
Samrat Julme - 15.07.2022 09:32

very simple and very helpful..................👌👌👌👍👍👍

Ответить
ABinu
ABinu - 22.06.2022 05:44

I need to iterate headers in excel can anyone suggest

Ответить
dhrupad shekar
dhrupad shekar - 26.05.2022 10:00

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections4/ListValuedMap
at net.javaguides.login.database.DatabaseToExcel.main(DatabaseToExcel.java:22)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections4.ListValuedMap
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more

ie.error in "XSSFWorkbook workbook = new XSSFWorkbook();"

Please let me know how to resolve this exception.

Ответить
rahul joshi
rahul joshi - 15.05.2022 09:35

hello sir, please help me out
can we get same output with this approach
for(int i=1; i<=NumOfRow;i++) {
row = sheet.createRow(i);

for(int k=0; rs1.next() && k<NumOfCol;k++) {

row.createCell(k).setCellValue(rs1.getString(k+1));
}
}

Ответить
Preyas Soni
Preyas Soni - 22.03.2022 22:08

Thank you sir.. My all doubts are cleared. I've searched number of times for this particular result & finally my wait is over. You are amazing.. Keep it up....

Ответить
Anil R
Anil R - 23.01.2022 11:47

Sir how to fetch multiple table record to excel sheet

Ответить
Mani Deep
Mani Deep - 26.07.2021 09:17

Hello sir,
I want get the data from two tables having same schema compare two tables if the values are different in any of the column we need to push the data into excel

Ответить
suraj
suraj - 28.05.2021 09:44

thank you sir

Ответить
Hussein Alkulani
Hussein Alkulani - 06.05.2021 05:56

Thank you

Ответить
Technicalbhaiyya
Technicalbhaiyya - 23.12.2020 19:16

Thnk you so much sir...your videos r so informative

Ответить
Mahendra Mithi
Mahendra Mithi - 21.11.2020 09:55

Thank you for the vedio pavan sir

Ответить
Tayyab Ahmed
Tayyab Ahmed - 19.11.2020 15:46

Sir pls make series of selenium with C# and related frameworks as well pls pls. Thanks 😊

Ответить
Tayyab Ahmed
Tayyab Ahmed - 19.11.2020 15:46

Sir pls make series of selenium with C# and related frameworks as well pls pls. Thanks 😊

Ответить
Tayyab Ahmed
Tayyab Ahmed - 19.11.2020 15:46

Sir pls make series of selenium with C# and related frameworks as well pls pls. Thanks 😊

Ответить
Tayyab Ahmed
Tayyab Ahmed - 19.11.2020 15:46

Sir pls make series of selenium with C# and related frameworks as well pls pls. Thanks 😊

Ответить