poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45269] New: but at replaceText function - String index out of range: -5
Date Tue, 24 Jun 2008 14:39:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45269

           Summary: but at replaceText function -  String index out of
                    range: -5
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: fabioebner@hotmail.com


Created an attachment (id=22168)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22168)
.java and .doc file

when i try to replace some text, sometimes the funciont dont got the all text
in paragraph, i do one loop to got all text in paragraph but i got that error:

 at java.lang.StringBuffer.substring(StringBuffer.java:416)
Paragraph Text: 14as
offset - > -1
X = 14
String index out of range: -5
+ + + + + Word Dokument bearbeitet + + + + +
        at org.apache.poi.hwpf.usermodel.Range.text(Range.java:270)
        at org.apache.poi.hwpf.usermodel.HWPF.work(HWPF.java:84)
        at org.apache.poi.hwpf.usermodel.HWPF.<init>(HWPF.java:25)
        at testeword.Main.main(Main.java:51)



look at line Paragraph Text: 14as when te all text are 14asdasd  and other
bug..


when i have some big text that continue in another line, she got like another
paragraph but is not, because i dont press ENTER the line end and continue at
line down


sorry my english


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message