logo
small logo
  • Products
  • Buy
  • Support
  • About
  • Customer panel Support
    • en
    • de
    • JP
    • ZH
  • Home
  • /
  • Articles
  • /
  • The object rendering border for the Clip property
  • FastCube - High-Speed OLAP Cube Engine and Pivot Grid

    February 29, 2020

    It is difficult to imagine data analysis without OLAP (On-Line Analytical Processing) technology. Although there

    read more
  • Reports and PDF documents in Blazor

    April 5, 2021

    Microsoft has recently launched a web platform called Blazor. This framework allows creating an interactive

    read more
  • How to install FastReport Business Graphics .NET

    August 18, 2021

    This article shows how to install FastReport Business Graphics .NET on your computer and how

    read more
  • Report generators family FastReport brief review

    March 23, 2020

    Without reporting it is impossible to carry on business in any sphere of life. Bureaucracy

    read more
  • Create a new report with code VB.NET

    September 17, 2020

    Speaking of the .Net framework, we usually imagine the #C programming language. Simply because the

    read more

The object rendering border for the Clip property

August 12, 2017

In this article I would like to draw your attention to an interesting property of the of the object Text. Clip property determines whether to display the text, if it goes beyond the boundaries of the object. If this feature is enabled, the text will be cut according to the boundaries of the object. If disabled - will be displayed in full, as if the object was stretched.

Let's look at an example. Create a simple report. For example, I bring a list of product categories with pictures:

Please note that the selected text object with the name of the category has a small size. I specifically disabled text wrapping (WordWrap property) for clarity.

Preview the report:

 

As you can see, the names of the categories cut because of the small size of the text object. Now, set the Clip property to false (default true) for the same object.

 

Let's see how the report will look is now:

 Names are displayed in full, despite the size of the text object.

Now do export to PDF format: 

The document corresponds to the report, everything is correct.

I went ahead and decided to display the text vertically. To do this, change the angle of the text of the object in the Angle property, for example - 270. Now the object of the text is as follows:

 Run the report:

 At this time, the property did not work. But it is not all that bad. Let us export the report in PDF:

And here, the Clip property really disabled and the text is displayed correctly, despite the size of the text object.

Make text slope of 45 degrees and repeat the experiment. 

The report is still not fully displayed text. And now export to PDF:

 

And this time, export to PDF did not disappoint. Everything looks correct.

Summarize. The property Clip of the text object truncates text that does not fit within the boundaries of the object. If you use the autogrow feature object may occur displacement of neighboring objects or objects overlap that for some exports will lead to an incorrect display of the report. In such cases it is convenient to disable Clip property.

From considered above, it is clear that now this "feature" works only with horizontal withdrawal of the text in the reports. However, when exporting to PDF, the rotation angle of the text does not matter. The text is always displayed in its entirety.

about product buy
avatar
Dmitriy Fedyashov
Technical Writer
Fast Reports Team: Dmitriy Fedyashov - Technical Writer at Fast Reports
.NET FastReport

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Buy
  • Download
  • Documentation
  • Testimonials
  • How to uninstall
  • FAQ
  • Tutorial Video
  • Forum
  • Support SLA
  • Articles
  • Our News
  • Press about us
  • Resellers
  • Extended licensing
  • Contact us

© 1998-2023 by Fast Reports Inc.

  • Privacy Policy

Trustpilot