Telerik reporting export to pdf, hide content leave the space

4 posts, 0 answers
  1. Kunal
    Kunal avatar
    1 posts
    Member since:
    Mar 2012

    Posted 11 Jun 2012 Link to this post

    Hello,

    I am using "telerik reporting q1 2012". I am using Telerik.Reporting.Table and dynamically try to hide them. But it leave space when export to pdf. I have also try to put it in Panel. But the same issue. Please help me on this.

    Regards,
    Kunal
  2. Peter
    Admin
    Peter avatar
    1648 posts

    Posted 12 Jun 2012 Link to this post

    Hello Kunal,

    Telerik Reporting sections/panels behavior is to keep the space they occupy no matter their child items. As a workaround our suggestion is to set the section (detail) height to a very small value in code behind just after the InitializeComponent() is called in the report's constructor. As shown in the following code snippet. This will keep your design time intact and in the same time initially will shrink the report's detail section.

    public partial class Report1 : Telerik.Reporting.Report
    {
        public Report1()
        {
            //
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            this.detail.Height = Unit.Pixel(1);
        }

    Greetings,
    Peter
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

  3. VINEET
    VINEET avatar
    10 posts
    Member since:
    Aug 2011

    Posted 14 Aug 2012 Link to this post

    Hi,
    telerik i have the same problem.
    I am using telerik reporting Q3 2009. Your provided code
    this
    .detail.Height = Unit.Pixel(1);

    is not doing anything.
    please help me.
    thanks
  4. IvanY
    Admin
    IvanY avatar
    417 posts

    Posted 15 Aug 2012 Link to this post

    Hello Vineet,

    Perhaps something else is preventing your detail section to shrink or you have items that are in the page footer section. In order to find these items you have to select each item in the designer and set their background to some color. If the items are situated in the page footer they will remain at the bottom of the page, regardless of the height of the detail section. Also please have in mind that your report will always make at least one full page.

    Kind regards,
    IvanY
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Back to Top