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

Report not appear after update of Telerik.Windows.Documents.dll

1 Answer 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dario
Top achievements
Rank 2
Dario asked on 04 Oct 2012, 08:23 AM
Hi to all,
I upgraded my solution from 2011.3.1323.1040 to 2012.2.0912.1050 version.
It's all ok but I met problem with Telerik.Windows.Documents.dll. My method creates a document by code, before update I saw all document objects, after update part of object disapears.

In attach:
  • Example render document before update (with omissis)
  • Example render document after update (with omissis)
  • Code for my tests

I think that the problem is not only in this part of code, what do you think about this?

I attached 2nd example also.

Bye

1 Answer, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 08 Oct 2012, 04:14 PM
Hello Dario,

If you are referring to the fact that your tables do not have borders with the latest version, the reason for this behavior is that when implementing the Styles feature, we have changed the logic in order to be more compatible with MS Word.

That is why now when a table is created, by default it will not have borders. You can apply the default TableGrid style which is used when inserting a table from the UI in the following way:
table.Style = document.StyleRepository["TableGrid"];

If you want to fine-tune the borders and set them to some different value than the default, you can use the following approach:
Border border = new Border(2, BorderStyle.Single, Color.FromArgb(255, 0, 0, 0));
table.Borders = new TableBorders().SetBottom(border);

If, however, you are observing other issues, you can open a support ticket and send us the project that creates your document in order to investigate further.

 
All the best,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Dario
Top achievements
Rank 2
Answers by
Petya
Telerik team
Share this question
or