http://poi.apache.org/spreadsheet/quick-guide.html#DrawingShapes

On Mon, Dec 17, 2012 at 7:12 AM, Stefan Brankovic
<[email protected]> wrote:
> Can anybody write me a few lines of code showing how to write a line in a 
> cell in excel, using apache poi ?! In plain Excel, I would go to Insert - 
> Shapes - Line. Basicaly, make code like this:
> Workbookwb =newHSSFWorkbook();Sheetsheet 
> =wb.createSheet();Rowrow=sheet.createRow(0);Cellcell =row.createCell(0);
> now, missing code would go here. As i searched the net, I should be using 
> Class HSSFSimpleShape and OBJECT_TYPE_LINE. But i dont know how to implement 
> it in my code :(
> I guess I should have the cell which i want to draw the line in or some 
> pixels as a coordinaets or something.
> Help ! :)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to