943,931 Members | Top Members by Rank

Ad:
Oct 12th, 2006
0

DataReport Height

Expand Post »
Ok, I'm having a little trouble with the DataReport Object.
It's a very simple report, showing users and their information -- but also there is one field, a Memo that is their "Comments".

When the whole report is displayed, it looks much like a table with the headers showing the fields and each row sepereated with a line, and each field on each row seperated by a line. Simple table.

So I've set the "Comments" "CanGrow" to True as the comments could fill an entire page... I certainly don't want it to cut off. So that's fine, all the comments display all the time.

The problem comes when the Comments takes more than one line. The lines between the fields on each row are only the height of a single row... To complete the table I need a way to check if the detail row has grown at all, and set all the field-level lines to it's height.

So here's my code that doesn't work... I'm not sure where to put it or how to make it look so it goes through all the rows:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Sections.Item("Section1").Controls.Item("Line6").Height = Sections.Item("Section1").Height
  2. Sections.Item("Section1").Controls.Item("Line5").Height = Sections.Item("Section1").Height

Any help = greatly appreciated.

Thanks !
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tswaters is offline Offline
1 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Missing Dependency Files
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: program adds 2 identical records to table





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC