Jump to content
  • Export to Docx White mark whem cell backgound color set, in not 16 enum colors.


    lubagov
    CategoryBug report
    PriorityNormal
    ReproducibilityN/A
    ResolutionOpen
    SeverityMinor
    StatusNew

    In file jasperreports-5.0.0/src/net/sf/jasperreports/engine/export/ooxml/DocxRunHelper.java i modify it:

    ***************

    --- 170,179 ----

    value = attrs.get(TextAttribute.BACKGROUND);

    oldValue = parentAttrs.get(TextAttribute.BACKGROUND);

     

    ! if (value != null && !value.equals(oldValue) && ColorEnum.getByColor((Color)value) != null)

    {

    //the highlight does not accept the color hexadecimal expression, but only few color names

    ! write(" \n");

    }

    to:

    *** 170,180 ****

    value = attrs.get(TextAttribute.BACKGROUND);

    oldValue = parentAttrs.get(TextAttribute.BACKGROUND);

     

    ! if (value != null && !value.equals(oldValue) /*&& ColorEnum.getByColor((Color)value) != null*/)

    {

    //the highlight does not accept the color hexadecimal expression, but only few color names

    ! //write(" \n");

    ! write(" \n");

    }

     

    value = attrs.get(TextAttribute.SIZE);

     

    For what mark color was setted? "none" replace white, to transparent color.



    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...