Thanks a lot ----- Original Message ----- From: "Amol Deshmukh" <[EMAIL PROTECTED]> To: "'POI Users List'" <[email protected]> Sent: Wednesday, August 24, 2005 6:03 PM Subject: [SPAM] - RE: set focus to the second sheet - Bayesian Filter detected spam
> There is a patch for this at: > http://issues.apache.org/bugzilla/show_bug.cgi?id=28328 > > ~ amol > > > -----Original Message----- > > From: Roland Brassous [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 24, 2005 8:02 AM > > To: POI Users List > > Subject: set focus to the second sheet > > > > > > Hi everyone, > > > > I am new in the HSSF world. > > I try to create a workbook, with the focus on the second sheet. > > Here is my code: > > > > HSSFWorkbook wb = new HSSFWorkbook(); > > HSSFSheet sheet1 = wb.createSheet("new sheet"); > > HSSFSheet sheet2 = wb.createSheet("second sheet"); > > sheet1.setSelected(false); > > sheet2.setSelected(true); > > FileOutputStream fileOut = new > > FileOutputStream("c:/workbooktest.xls"); > > wb.write(fileOut); > > fileOut.close(); > > > > When i open the excel document,the second sheet is selected, > > but i have the > > first sheet data displayed. > > > > What is wrong? > > Any idea? > > > > Thanks > > > > Roland > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > Mailing List: http://jakarta.apache.org/site/mail2.html#poi > > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > Mailing List: http://jakarta.apache.org/site/mail2.html#poi > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
