in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How to make vertical lines extend from pageheader to pagefooter inside the detail section

Last post 01-09-2008 12:26 PM by kingfenix. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-08-2008 2:05 PM

    How to make vertical lines extend from pageheader to pagefooter inside the detail section

    I am designing a invoice, and want to basically draw a box in the detail section and list the sold products in the box as repeated detail records, I can get everything perfect except the vertical lines of the box, how can I get them to extend from the pageheader area to the pagefooter area, in order to draw a box around the "available" detail area?

     

    Sample attached showing vertical lines which need to be corrected in the detail area.

     Doug

  • 01-09-2008 8:41 AM In reply to

    Re: How to make vertical lines extend from pageheader to pagefooter inside the detail section

    Can anyone confirm that this is not possible or provide a solution as to how I can accomplish it?

    The request is to have a vertical line extend the length of the "Available" area of the detail section,  not just the length of data in the detail section. Sample is attached showing where I am at, and to explain where the vertical lines should be expanded.

     Doug

  • 01-09-2008 11:24 AM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: How to make vertical lines extend from pageheader to pagefooter inside the detail section

    Hi Doug,

    Currently the way report sections are rendered there is no easy way to flawlessly extend the vertical lines of a table.

    The workaround to accomplish this is to draw the lines yourself.  Through the designer you can add lines (Add Line button) and set their position exactly on the vertical lines from your table headers in the PageHeader section of the report.  In the OnFormat/OnPrint event for the PageHeader you set the height of the lines to a certain length.  The drawback to this workaround is you have to determine the height of the lines. 

    I've attached a report definition that shows how this is done.  Through the VBScript you can obtain values such as Page number ("Page") and any section height.  So you can make the lines a different height for page 1 (it may have a Report Header) and a different height for other pages without headers, report footers, etc.

    Regards,
    Greg L

    Filed under: ,
  • 01-09-2008 12:26 PM In reply to

    Re: How to make vertical lines extend from pageheader to pagefooter inside the detail section

    Greg,

     

    Once again thanks very much, this worked for my needs...

     I almost couldnt get it to work cause I was missing something, so here is a recap for everyone else.

    1) Draw the line in the pageheader

    2) Set pageheader cangrow to false

    3) Put script in OnFormat of pageheader to change line length

     

    Thanks Greg,

     Doug

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.