Textbox Borders don't work properly

6 posts, 0 answers
  1. Thomas Sonnenschein
    Thomas Sonnenschein avatar
    27 posts
    Member since:
    Dec 2008

    Posted 09 Sep 2010 Link to this post

    Dear Telerik Support,

      I have a problem with a table inside my reports. I have some data, that should be formatted in a table. First I used a lot of textboxes with no space between them and set the appropriate border properties to get a rectangle around the table and row separation inside it.

    By doing it this way, I got the same problems like Jim on this Post. So I tried the suggested solution from Steve, but with no success (See attached picture image1.png). If I remove the horizontal borders (top and bottom), the vertical lines are rendered correct (see attached picture image2.png).

    This behavior occurs in printing only (even paper or pdf). The Preview looks ok.

    I use Telerik.Reporting Q2 2010 (4.1.10.714) on VS 2010 and Windows 7 Ultimate 64Bit .

    Greetings
      Thomas
  2. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 10 Sep 2010 Link to this post

    Hi Thomas,

    The "thinner" lines you observe are caused by Adobe Acrobat settings (see attached screenshot), namely "Smooth line art" and "Enhance thin lines". When these settings are enabled (default), the borders look different in lower resolutions, although they are the same (zoom the pdf to 300% for example to verify this).

    However these settings are not relevant when printing and only applicable for the PDF representation, so to resolve the problem either disable the above settings or apply a bigger border to the report items i.e. 2 px or more. This way the Acrobat would not need to enhance the lines as they are bigger enough for it to show it correctly.

    Kind regards,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Thomas Sonnenschein
    Thomas Sonnenschein avatar
    27 posts
    Member since:
    Dec 2008

    Posted 13 Sep 2010 Link to this post

    Dear Support,

      you wrote
    However these settings are not relevant when printing and only applicable for the PDF representation

    That is wrong. The problem with different width of vertical lines depending on also switched on horizontal lines is a problem even in printing, with no Acrobat Reader involved (printed direct from Web Preview).

    Further more you wrote:
    to resolve the problem either disable the above settings or apply a bigger border to the report items i.e. 2 px or more

    So I set the borders of my textboxes from default 1pt (the default for textbox) to 2px and got the result in image3.png (Acrobat 200% Zoom, "Enhance thin lines" enabled). Even in 400% you can see, that the vertical line of all textboxes with horizontal lines turned on are different from the lines in textboxes, with horizontal lines set to none (all Borderlinewidth 2px). Then I switched the option "Enhance thin lines" off and got the result from image4.png. Also not correct, now there are gaps between the boxes, but linethickness seems to be the same. But in Result, the borders are too thick now (2px thickness in report should be on a 600dpi or 1200dpi print thinner).

    I even tried 2pt instead of 2px, but that looked so ugly, that I switched fast back to 2px.

    So please help

      Thomas

  4. Steve
    Admin
    Steve avatar
    10940 posts

    Posted 14 Sep 2010 Link to this post

    Hello Thomas,

    Printing from the web viewer exports to PDF internally and invokes the Acrobat PDF plugin to take care of the printing, so in your case the printing depends on Acrobat. For example if you export to TIFF and print from it, the problem should not be present.
    Either way, the solution from my previous post, has resolved such inconsistencies on our end and has helped other users that have encountered this problem. That is why if the problem is still present on your end, we would appreciate if you open a support ticket and attach a sample runnable project that exhibits the problem. Once we review it, we would be able to provide you with more information.

    Greetings,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Mike Sorel
    Mike Sorel avatar
    7 posts
    Member since:
    Dec 2009

    Posted 27 May 2011 Link to this post

    Hi all,

    I have a work around of sorts for this problem.

    Firstly to recap; it seems that horizontal borders are rendered differently depending on whether the textbox has one or more vertical borders.  When exported to PDF this displays as thinner lines if there are no vertical borders (yes lines print OK and yes they appear OK at >300% and yes they appear OK if you turn off the Acrobat "Enhance thin lines" setting).  In our situation we are emailing the PDF to suppliers and are not about to explain to all of them that they need to mess with the Acrobat settings.  See attached image "Textbox Borders 1 - Problem.png" for a view of the problem.

    My work around for this problem is to add ONE White Vertical border to each of the affected text boxes.  See attached image "Textbox Borders 2 - Solved.png" for a view of the solution.

    I have empahised ONE border because I found that adding two would take a nick out of the horizontal border where the vertical intersected it.  See attached image "Textbox Borders 3 - Nick in Horizontal.png" for a view of this problem.

    Even with only one white vertical border, if you view the PDF at 1600% you will see a small nick in the horizontal line, but this is not visible at 100% or on the printout.  See attached image "Textbox Borders 4 - Solved 1600.png" for a view of this.

    I hope this helps anyone having the same problems.

    Regards

    Mike
  6. Nilima
    Nilima avatar
    1 posts
    Member since:
    Jan 2018

    Posted 23 Jan 2018 in reply to Steve Link to this post

    I'm having problems with the Telerik borders. I applied a 2 px white border on the left of ever cell. But I still get some thin borders and some thick. In Telerik itself. Please see the attached screenshot. Please let me know how I can get a consistent thickness. Thank you.
Back to Top