| | |
DataReport Height
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Solved Threads: 0
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:
Any help = greatly appreciated.
Thanks !
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)
Sections.Item("Section1").Controls.Item("Line6").Height = Sections.Item("Section1").Height Sections.Item("Section1").Controls.Item("Line5").Height = Sections.Item("Section1").Height
Any help = greatly appreciated.
Thanks !
![]() |
Similar Threads
- Dynamic iframe height (JavaScript / DHTML / AJAX)
- iframe height (HTML and CSS)
- Help with text box height (HTML and CSS)
- Cylinder surface, area, height etc etc (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Missing Dependency Files
- Next Thread: program adds 2 identical records to table
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





