0

I am really having some problems finding a way to create a triangle in poi using Shapes. Is this not possible? From what i have read around, poi should be able to draw basic shapes... Is triangle not one of them?

This example provided by poi does not help me to much...

    HSSFSimpleShape s = patriarch.createSimpleShape(a);
    s.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);
    s.setLineStyleColor(10,10,10);
    s.setFillColor(90,10,200);
    s.setLineWidth(HSSFShape.LINEWIDTH_ONE_PT * 3);
    s.setLineStyle(HSSFShape.LINESTYLE_DOTSYS);

Triangle is not one of the HSSFSimpleShape.OBJECT_TYPE_OVAL variables. PS: i use XSSF classes

Bogdan M.
  • 2,161
  • 6
  • 31
  • 53
  • You say you're using XSSF, but all your code is HSSF, which is it? – Gagravarr Jan 15 '15 at 14:40
  • its from examples from poi, as mentioned allready `This example provided by poi does not help me to much...` why not read the entire questio... – Bogdan M. Jan 15 '15 at 19:49

0 Answers0