Page footer of different heights

Posted by: entwicklung on 17 December 2018, 1:31 am EST

    • Post Options:
    • Link

    Posted 17 December 2018, 1:31 am EST

    We use ActiveReports 12 and have a section report. The report has a size of at least 2 pages. On the first page there should be a page footer image, which has a certain size. On the other pages, there is just a text in the page footer so the size of the footer is a lot smaller. Now I have the problem that…

    • either the first page with the image is ok and on the other pages the report footer is too high and therefore the page has a large white space between the detail text and the footer.

    • or te first page with the image overlaps the detail text, which is not readable and on the other pages it looks fine.

    I’m currently not able to have a different page footer size on each page. Is there something I’m missing?

  • Posted 17 December 2018, 10:30 pm EST

    Hello,

    You can achieve the requirement by controling the height of the section, and fields’ visibility in PageHeader’s Format event using a global variable, as follows:

      int number=0;
    public void PageHeader_Format()
    {
    	number++;
    	if(number != 1)	
    	{	
    		Picture1.Visible = false;	
    		TextBox2.Visible = true;
    		PageFooter.Height = 0.25F;
    	}
    }
    
    

    The sample report is attached for your reference. Please note that the report is bound to NWIND.mdb shipped with the product.

    Regards,

    Esha

    PageFooter_ChangeSize.zip

  • Posted 18 December 2018, 8:46 pm EST

    Works!

    Thanks a lot.

    Roman

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels