This is a migrated thread and some comments may be shown as answers.

Add lines in table cell.

1 Answer 223 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 01 Dec 2014, 10:56 AM
Hi 

How can i add lines in table cell. Suppose i need to cut a triangle in table cell and need to fill different colors in triangle. 

Can you provide some sample code.

Regards,
Sandeep

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 02 Dec 2014, 03:12 PM
Hello Sandeep,

Thank you for contacting us.

You can add some geometry in table cells by first adding a Block in table cell and then insert the desired geometry as block's content. You may find more detailed information in the "Inserting Geometries" section of this Block documentation article. Using this approach you will be able to add a path geometry of one color.

If you need to add more complex geometry with multiple colors in table cell you will have to implement custom block element as shown in this IBlockElement forum post. In the Draw() method you should implement the logic for drawing the custom geometry using FixedContentEditor. You may find sample code for drawing geometries with FixedContentEditor in the DrawFunnelFigure() method on this link to PdfProcessing GenerateDocument SDK example

I hope this is helpful.

Regards,
Deyan
the Telerik team
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop , hybrid and native mobile apps.

 
Tags
PdfProcessing
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or