We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Adding Border on certain section

Hi,

I want to add a border around certain section in my pdf. could someone please help me out how that can be achieved.

Code sample will be appreciated.

Secondly, while using pdfgrid, when grid continues on second page, after that when i print any other text, it looses position (and start at the beginning of the next page), any better way to handle such scenario? Which event should i use to calculate x and y for next text to use?

Thanks
Sanjay


1 Reply

GM Geetha M Syncfusion Team November 28, 2011 07:07 AM UTC

Hi Sanjay,

Thank you for your interest in Syncfusion products.

Border around any section can be achieved using PdfPageTemplateElement class. This has been explained in the sample given below.

After completing PdfGrid, you could make use of PdfGridLayoutResult to get the resultant page and bounds. Please check the sample in the link below that explains it as well.

F101845-1892214978.zip

Please try this and let me know if you have any questions.

Regards,
Geetha


Loader.
Live Chat Icon For mobile
Up arrow icon