Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Column-report with special layout

edited August 2006 in General
Hi,

I've to build a record similiar to the following:

Page 1
----------------------
| c1 c2 | c1 c2 |
----------------------
v1 v2 |
v1 v2 |
v1 v2 |
|
|
|
----------------------


Page 2
----------------------
| c1 c2 | c1 c2 |
----------------------
v1 v2 | v1 v2
v1 v2 | v1 v2
v1 v2 | v1 v2
v1 v2 |
v1 v2 |
v1 v2 |
----------------------


Condition:
The vertical lines should fit the whole page and touch the upper and below
horizontal line.

What I've done:
1. this report is a subreport (in the detail-band of a grouped main report)
2. the main report has left and right border = 25mm (remaining size 160 mm)
3. the column report has first col left = 0 and second col left = 80
4. "c1 c2 | c1 c2 " is within a region (with frame) fits width and
height of the title band of the column report.
5. the | between c2 c1 is a TppLine left = 80
6. the | after v2 a TppLine fits width and height of the detail band with
Position = lpRight
7. the lower horizontal line I've positioned in the footer of the main
report

Now the problems:
(1)
the | from 5. & 6. didn't draw at the same position - how I've to calculate
the position of?
(2)
On Page 2 the vertical line draws also on second col.
(3)
The vertical line stops, when only the first col is filled with on values
after the last line.


Probably exists a simple solution. The only problem is to print a vertical
line through whole title band of column-report to top of footer band of
main report.


--
Best regards
Dietmar Brueckmann

Comments

  • edited August 2006

    Try using a PageStyle to draw the graphical elements. A page style can print
    as a background layer on the page. To add a page style band to the report,
    select Report | PageStyle from the report designer menu. then size the band
    to be about the height of the page.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2006
    Am Fri, 4 Aug 2006 09:22:42 -0500 schrieb Nard Moseley (Digital Metaphors):


    Thanks for answering!
    The report looks quite good. But I've two problems.

    (1)
    In the group-header is a stretchable TppDBMemo. If it stretches I couldn't
    calculate the correct PageStyle-Height.
    I calculate it in this way (in PageStyle.onPrint):
    PaperHeight - MarginTop - MarginBottom
    - (Header.Height + Footer.Height + GroupHeader.Height)

    (2)
    I get an extra page after each group-change (I've tested with
    TppGroup.NewPage := False but then I get additional group-headers).

    I've made a small Test-project and it does the same mistakes.

    --
    Best regards
    Dietmar Brueckmann
  • edited August 2006

    - the PageStyle generates as a background layer, thus it generates prior to
    anything else on the page. That will not work if you need to print a dynamic
    height group header band above the lines. This example shows another
    technique that might be more applicable.

    www.digital-metaphors.com/tips/DrawLineOnEachSide.zip

    - I do not know why are you seeing an extra page break after each group
    change. If you want to send a simple example that we can run here, email to
    support@digital-metaphors.com in zip format.



    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.