Drawing lines in reports

M

Mauricio Silva

Hi there,

I am trying to find a way to draw vertical lines in my report. So far, the
object line has beed working great until I turn on the property CanGrow, the
object line does not grow my the detail section.

I tried a few examples I saw in the discussion group and none have worked.
My last try (a rectangle) was this command at the OnPrint event:

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

and again, it won't grow with the section. So my question is: How can I
verify the heigth of a section?

I know I could just draw the line thru the entire report, but I didn't want
to draw it over the headers or footers.

Thanks for any help

Mauricio Silva
 
S

Stephen Lebans

The Height prop returned from Me.Section(acDetail) is the original
design time value. To access the current Section height value in a
CanGrow/Shrink situation use Me.Height instead.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
M

Mauricio Silva

Thank you Stephen,

so far, the change I had tried for this option was Detail.height that was
returning the design time height. Thank you very much for this ..

Mauricio Silva
 

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

Similar Threads


Top