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

Table borders not rendering as desired

1 Answer 81 Views
PdfProcessing
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 24 Dec 2018, 09:58 AM

Hi,

I've created a word document that I use with WordsProcessing to mail merge. In the document I've had to use tables to be able to get left and right alignments of blocks of text (seems Word's TextBox isn't supported within WordsProcessing?). The tables solution works and allows me to produce a document as per the attached. However, when I try to convert to produced word document to PDF the document comes out with additional borders on the tables (where certain cell borders have been set to none within the word document). The best way to see this is to create a word document with a table of one row with three columns. For the first column make it so that the borders surround the cell (top, left, right bottom). Do the same for the last column. For the second (middle) column remove the top and bottom borders. The document should now show two boxes, one on the left and one on the right (see attached image as an example). Take this Word Document and then convert it to PDF on the demo (https://demos.telerik.com/aspnet-mvc/wordsprocessing/pdf-export). You'll see when comparing the word document and the converted PDF document what the issue is, in that the middle cell of the table renders with the top and bottom border (which is not present in the word document). Is this a limitation of the PDFProcessing? If so is there another way to construct a word document to achieve the same result both for mail merging in WordsProcessing and converting the subsequent document to PDF so that they render as intended?

Many thanks,

Neil

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 27 Dec 2018, 07:36 AM
Hello Neil,

Thank you for describing the issue in details. I managed to reproduce it and It appears that this is already a known issue logged in our feedback portal: WordsProcessing: Table and table cell borders are not evaluated according to inheritance and conflict resolution rules. In order to get notified for changes in this item's status please subscribe for it. 

As a workaround I would suggest instead of removing the second column's top and bottom borders, just change the borders' color to white.

Should you need further help, please let me know.

Regards,
Peshito
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PdfProcessing
Asked by
Neil
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or