Box around sub Report

L

luis.a.roman

I have a variable sub report that would like to put a box around the
detail section. The section displays variable lenth lines that are
linked to a field. How can I put a box around the section. Or around
the max length of the detail report.

I use the code below but it put a box on each detail line. Suggestions
or guidance will be helpfull.

Me.Line (0, 0)-Step(Me.Width, Me.Section(0).Height), , B

Luis
 
M

Marshall Barton

I have a variable sub report that would like to put a box around the
detail section. The section displays variable lenth lines that are
linked to a field. How can I put a box around the section. Or around
the max length of the detail report.

I use the code below but it put a box on each detail line. Suggestions
or guidance will be helpfull.

Me.Line (0, 0)-Step(Me.Width, Me.Section(0).Height), , B


The section's Height does not reflect the result of CanGrow.

Also, the CanGrow height of a section (or control) is not
known until the Print event an is only available throught
the report object;

Puting all that together, you need to use the detail section
Print event to run:

Me.Line (0, 0)-Step(Me.Width, Me.Height), , B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top