Custom Code for Report Header

  • has anyone written any custome code for Report Header which is calling many subreports (sub1,sub2,sub3)

    i need to display heading as SUB1, SUB2, SUB3 based on the subreport being printed

    so for all pages of sub1 heading should be SUB1

    so for all pages of sub2 heading should be SUB2

    so for all pages of sub3 heading should be SUB3

    PLEASE HELP.

    *i cannot put headers in the subreport table headere as the subreports contain many tables charts and are very complex

  • Hi,

    Have you tryed passing report parameter from calling report?

    in main report while mapping with parameters add report heading as parameter and add the same parameter in sub report and show it.

  • At any given instance will all three sub reports SUB1, SUB2, SUB3 be selected/printed or only one of the sub report will be selected.

    If the latter is the case, you can use the same condition that selects the sub report to change the heading in the main report, like = choose(sub Rpt Condition value, 'Hdr for Sub1', 'Hdr for sub2','Hdr for sub3') assuming sub Rpt Condition value returns numbers 1,2 or 3. If it is something else, you can use SWITCH.

    View Siva Gurusamy's profile on LinkedIn

    "Software changes. This is a rather obvious statement, but it is a fact that must be ever present in the minds of developers and architects. Although we tend to think of software development as chiefly an engineering exercise, the analogy breaks down very quickly. When was the last time someone asked the designers of the Empire State building to add ten new floors at the bottom, put a pool on the top, and have all of this done before Monday morning? " : Doug Purdy, Microsoft Corporation

  • at any given time all the 3 subreports will be printed together.

    can you please explain your reply a bit more for this condition.

    Thanks a lot

  • Sorry, the approach that I have given above is only when only one of the sub reports is selected.

    Cannot think of a solution at this time.

    Sorry again.

    View Siva Gurusamy's profile on LinkedIn

    "Software changes. This is a rather obvious statement, but it is a fact that must be ever present in the minds of developers and architects. Although we tend to think of software development as chiefly an engineering exercise, the analogy breaks down very quickly. When was the last time someone asked the designers of the Empire State building to add ten new floors at the bottom, put a pool on the top, and have all of this done before Monday morning? " : Doug Purdy, Microsoft Corporation

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply