Skip to Content
author's profile photo Former Member
Former Member

dynamically setting page footer length

is it possible to set page footer length dynamically ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 23, 2015 at 01:20 PM

    Hi Tom,

    Yes and No.... Depending on the rest of the report determines how big each section is going to be. Since the page footer is based on the printer paper size it can also alter the page footer.

    The problem is until the page is rendered CR can't determine much room each section has and the more complex the report is the more it becomes impossible to determine in code.

    CrystalDecisions.ReportAppServer.ReportDefModel.Section boSection;

    boSection = rptClientDoc.ReportDefController.ReportDefinition.PageFooterArea.Sections[0];

    boSection.Height = 1000; // 1440 twips = 1 inch

    What may help is why do you need to?

    Report Design forum may be able to help also, I've see posts where this was done and how to determine the amount of space for each... You may have to do this Report Design side, may not be possible through exposed API's.

    Don

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Don.

      Since what i need is to print the report like the following

      ( on odd pages )

      emp01 emp06

      emp02 emp07

      emp03 emp08

      emp04 emp09

      emp05 emp010

      ( on even pages)

      emp11 emp14

      emp12 emp15

      emp13 emp16


      that is, different number of records on different page


      i try to use 2 page footer sections , "page footer a" and "page footer b"

      then try to use formula to suppress the "page footer a" or "page footer b"


      if (pagenumber mod 2 = 0 ) then

      true

      else

      false


      but it doesn't work !


      is there any other way to meet the requirement ? Thanks



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.