Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:49:46+00:00 2026-06-16T05:49:46+00:00

I want to edit an Excel sheet with some pre designed templates containing pie

  • 0

I want to edit an Excel sheet with some pre designed templates containing pie charts and graphs using java.

All I have to do is read some values from a different raw data Excel and insert the values into some specific cell in the Excel with the template. Reading values is done from external data sheet, I tried a lot to write the data into the Excel with the template.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:49:48+00:00Added an answer on June 16, 2026 at 5:49 am

    the code is

     FileInputStream fileIn =null;
     FileOutputStream fileOut = null;
     final Workbook wb; 
    
          fileIn =new FileInputStream("d:\\excelfiles\\Report.xlsm");
          wb = WorkbookFactory.create(fileIn); //open existing file
          final Sheet sheet = wb.getSheet("Report");//open the existing sheet use wb.createSheet() to create a new one
          row = sheet.getRow(0/*row number*/);
          if (row == null)//if row not exists
              row = sheet.createRow(0);
          cellp = row.getCell(4);
          if (cellp == null)
             cellp = row.createCell(0);
    

    note I removed all the exception handling. look more in the api

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Open Office/Excel spreadsheet (some people edit using Open Office, some with
I want to restrict the users to edit range in Ms Excel sheet. Scenario:
I have some strings in Java (originally from an Excel sheet) that I presume
I need to read large excel sheets using Java. The Excel sheet may be
I simply want to edit some commits with git rebase -i HEAD~2 inside the
We use an Excel sheet which contains some business logic (and so it is
I want to export some data from my jruby on rails webapp to excel,
I used the code described here to update an excel sheet using c#. The
I want to store array elements in an Excel Sheet. How can I do
I have a java code which fetches data from excel document. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.