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.
Unfortunately, activation email could not send to your email. Please try again.

Paragraph borders

Thread ID:

Created:

Updated:

Platform:

Replies:

120495 Sep 21,2015 08:35 AM Sep 23,2015 01:51 AM ASP.NET MVC 3
loading
Tags: DocIO
Andrea Perazzolo
Asked On September 21, 2015 08:35 AM

Hi,
I have a Table cell with some paragraphs inside.

for (int i = 0; i < crfQuestion.Answers[0].MaxLength/200; i++)
{
    var ansPar1 = table[01].AddParagraph();
    ansPar1.ParagraphFormat.Borders..Bottom.BorderType = BorderStyle.Single;
    ansPar1.AppendText(""DocStyles.answerText);
}
answerParagraph = table[01].AddParagraph();
answerParagraph.ParagraphFormat.Borders.Bottom.BorderType = BorderStyle.Single;

I would expect that each paragraph has a Bottom border border, instead only the last one has it.
In the doc attached, in the 3rd page first table, (Study Protocol) I achieved putting a border each paragraph directly in Word, using the "Internal Borders" menu in the Border ribbon button.
There is a way to programmatically do this? Or there is a workaround?

   Thanks in advance

     Andrea Perazzolo


Attachment: report_(11)_859e73c4.zip

Sathish K [Syncfusion]
Replied On September 22, 2015 02:04 AM

Hi Andrea,

Thank you for contacting Syncfusion support.

Kindly define horizontal and vertical borders for the paragraphs in order to get bottom border for each and every paragraphs placed inside the table cell. Please refer to the following code example which illustrates the same.

Code example:
WParagraph para = table.Rows[0].Cells[0].AddParagraph() as WParagraph;

para.ParagraphFormat.Borders.Horizontal.BorderType = BorderStyle.Single;
para.ParagraphFormat.Borders.Vertical.BorderType = BorderStyle.Single;

Regards,
Sathish


Andrea Perazzolo
Replied On September 22, 2015 03:16 AM

Thank you for the reply.
It works in the docx generation, but unfortunately it is not preserved in the PDF conversion of the Word Document.
Do wou have a Workaround?

    Thanks in advance

     Andrea Perazzolo

Sathish K [Syncfusion]
Replied On September 23, 2015 01:51 AM

Hi Andrea,

A support incident to track the status of your query has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Sathish


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;