You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/11/17 01:48:29 UTC

[Bug 57226] New: CellStyle.setShrinkToFit(true); makes the program fail, without throwing any error

https://issues.apache.org/bugzilla/show_bug.cgi?id=57226

            Bug ID: 57226
           Summary: CellStyle.setShrinkToFit(true); makes the program
                    fail, without throwing any error
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: giovanni.gaglione@gmail.com

I have a java class that initializes different cell styles to will be applied
on a spreadsheet. Like the following:

private void createNormalStyle(Workbook wb){
        CellStyle cs = wb.createCellStyle();


//        cs.setShrinkToFit(true);

        cs.setAlignment(CellStyle.ALIGN_LEFT);
        cs.setVerticalAlignment(CellStyle.VERTICAL_CENTER);


        this.standardCellStyle=cs;

    }

If I add the line that sets the rhinkToFt to true, the program blocks, without
throwing any error.
If I remove it the program works fine.

-- 
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


[Bug 57226] CellStyle.setShrinkToFit(true); makes the program fail, without throwing any error

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57226

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Is this on all files, or just one?

Have you tried with the latest version of Apache POI? (3.11 beta 3)

Is this on all JVMs, or just one machine+JVM combination?

-- 
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


[Bug 57226] CellStyle.setShrinkToFit(true); makes the program fail, without throwing any error

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57226

--- Comment #2 from giovannig <gi...@gmail.com> ---
Only JVM 1.6.

I have tried only with Apache POI 3.10 (3.10-FINAL).

It was happening just with one file. I did not try with other files.

-- 
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


[Bug 57226] CellStyle.setShrinkToFit(true); makes the program fail, without throwing any error

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57226

--- Comment #3 from giovannig <gi...@gmail.com> ---
(In reply to giovannig from comment #2)
> Only JVM 1.6.
> 
> I have tried only with Apache POI 3.10 (3.10-FINAL).
> 
> It was happening just with one file. I did not try with other files.

Srry, I was meaning JVM 1.7

-- 
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