Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

POI Issue

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have a working program that creates a spreadsheet. great. i'm trying to add some simple bells and whistles based on the Busy Developer's Guide examples, such as the autofilter and footer examples.

I can get it them to compile, but i don't see any results in the spreadsheet. I don't see what I'm doing wrong.

here's the relevant code for the autofilter and footers....

import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFFooter;
....
HSSFSheet sheet = wb.createSheet("My Report");

sheet.setAutoFilter(CellRangeAddress.valueOf("N5:N65000"));
.........deleted bunch of code that creates the individual rows of the spreadsheet

HSSFFooter footer = sheet.getFooter();
footer.setCenter("Center footer");
footer.setLeft("Left footer");
footer.setRight("Right footer");


like i said - the program runs but i don't see the autofilter button or the footers in the resulting spreadsheet.

i'm using poi 3.7

anybody have any idea what the problem might be?

i may be missing something obvious. i'm new at this......

thanks!
 
permaculture is giving a gift to your future self. After reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic