Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: Create rectangle using XSSFSimpleShape

$
0
0
How to make following code work? I got error like "The method or operation is not implemented."
Does this mean I can't draw rectangle for excel 2007 format by using XSSFSimpleShape?
XSSFDrawing drawingPatriach = (XSSFDrawing)sheet1.CreateDrawingPatriarch();
            XSSFClientAnchor a = new XSSFClientAnchor(0, 0, 0, 0, c, r, (c + 1), r + 1);
            XSSFSimpleShape rectangle = drawingPatriach.CreateSimpleShape(a);
            // Draw a rectangle.
            rectangle.ShapeType = (int)ShapeTypes.Rectangle;
            rectangle.SetFillColor(0, 255, 255);

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>