Drawing circles in ITableCell in PDF-document

Hi!

How can I draw circles in ITableCell ?

I want to get something like this: (see attachment)

Regards,
Alex (WaveAccess)

PDF_with_Circles.zip

3 Replies

DK Dhivya K Syncfusion Team January 8, 2007 01:09 PM UTC

Hi Alex,

Currently it is not possible to draw circle in table cells of grid model.
However, you can do this using flow model.

Here are some code to do this:

C#:

//Create a cell para
IParagraph para = table.Rows[0].Cells[1].AddParagraph();

//Create a ellipse in that cell para
EllipseShape ellipse= para.AppendCanvas(canvasSize).AddEllipse();
ellipse.Bounds = new RectangleF(380,55, 20, 20);

Here is a sample for your reference.
Circle_In_ITable.zip

Please take a look into it and let me know if you have any queries.

Regards,
Dhivya.


AL Alex January 9, 2007 09:21 AM UTC

Hi!

I found good desision for this problem! (see attachment for details)

Providing events is a good idea ;)

Regards,
Alex

TrafficLights_info.zip


DK Dhivya K Syncfusion Team January 9, 2007 12:58 PM UTC

Hi Alex,

Thanks for the update. Yes we can draw circles in template while publishing the cell. Thanks for sharing the idea.

Regards,
Dhivya.

Loader.
Up arrow icon