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

2 posts, 1 answers
  1. Dario
    Dario avatar
    61 posts
    Member since:
    Apr 2011

    Posted 04 Oct 2012 Link to this post

    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
  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 08 Oct 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top