You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Wonne Keysers <Wo...@realsoftwaregroup.com> on 2008/08/25 08:49:13 UTC

Re: changed API when introducing ss to hssf, add old as @deprecated?

Hi,

While trying to use Jasper Reports (2.0.4) I get the stack trace below.
Would it be possible to re-introduce the method
org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/hssf/util/Region)
in order to get things working again?

Or are there other (better) solutions?

Thanks
Wonne

java.lang.NoSuchMethodError:
org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/hssf/util/Region;)I
      at
net.sf.jasperreports.engine.export.JRXlsExporter.createMergeRegion(JRXlsExporter.java:515)
      at
net.sf.jasperreports.engine.export.JRXlsExporter.initCreateCell(JRXlsExporter.java:488)
      at
net.sf.jasperreports.engine.export.JRXlsExporter$1.handle(JRXlsExporter.java:384)
      at
net.sf.jasperreports.engine.export.data.StringTextValue.handle(StringTextValue.java:47)
      at
net.sf.jasperreports.engine.export.JRXlsExporter.createTextCell(JRXlsExporter.java:380)
      at
net.sf.jasperreports.engine.export.JRXlsExporter.exportText(JRXlsExporter.java:370)
      at
net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportPage(JRXlsAbstractExporter.java:540)
      at
net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReportToStream(JRXlsAbstractExporter.java:416)
      at
net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReport(JRXlsAbstractExporter.java:195)
      at
org.springframework.ui.jasperreports.JasperReportsUtils.render(JasperReportsUtils.java:113)




Nick Burch wrote:
> 
> On Sun, 20 Jul 2008, Rainer Schwarze wrote:
>>> However, I don't see why we can't add in the overloaded method for 
>>> common cases that people use. So, I've done it for this case, and I'm 
>>> happy for it to happen for other common ones, I just won't go looking 
>>> for them!
>>
>> Thanks. Here is another case with JasperReports 3.0.0:
>>
>> HSSFCellStyle.setFont([HSSF]Font)
> 
> OK, that's back in now. Shout if there are any more simple, common ones 
> like that!
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
> For additional commands, e-mail: dev-help@poi.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/changed-API-when-introducing-ss-to-hssf%2C-add-old-as-%40deprecated--tp18531440p19138734.html
Sent from the POI - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Re: changed API when introducing ss to hssf, add old as @deprecated?

Posted by Nick Burch <ni...@torchbox.com>.
On Sun, 24 Aug 2008, Wonne Keysers wrote:
> While trying to use Jasper Reports (2.0.4) I get the stack trace below.
> Would it be possible to re-introduce the method
> org.apache.poi.hssf.usermodel.HSSFSheet.addMergedRegion(Lorg/apache/poi/hssf/util/Region)

addMergedRegion(Region) is deprecated in trunk and ooxml, so I'm not sure 
about the value of adding back the overloaded method. The method that 
takes CellRangeAddress is the prefered way to do it now.

If you re-compile your app against the new poi jar though, it ought to 
pick up the superclass method signatures, and work fine. That might be a 
better bet for you

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org