New topic: Another Question About Reports
<http://forums.realsoftware.com/viewtopic.php?t=30577> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message tcbasic Post subject: Another Question About ReportsPosted: Tue Oct 20, 2009 8:54 pm Joined: Sat Jun 30, 2007 11:21 pm Posts: 60 Location: Pembroke Pines, FL (USA) Okay, so I've got my report running. Now, I'm trying to figure out how to use the GroupHeader feature. My data looks something like this: 12m, 1, ItemName 12m, 2, ItemName 1a, 1, ItemName 1a, 2, ItemName 1a, 3, ItemName 2a, 1, ItemName 3a, 1, ItemName 3a, 2, ItemName I have created a GroupHeader and put a ReportField called "Hour" In the Body of the report I have 2 ReportFields, 1 for the Item # and the other for the Item name How do I group all of the 12m items together under a header of "12" then in the body the item # and name (which varies from hour to hour). Right now, my report is only printing one GroupHeader with all of the records listed instead of being grouped under the hour as it changes. How do I do this? And one more question, how can I set a report date? I've tried rpt.lblReportDate.Text = reportDate.LongDate but I get an error message saying this method/property doesn't exist - and yes, I do have a reportlabel control called "lblReportDate" in my header section. Any help is appreciated. Thanks. Tom RB2009r4 Windows Vista Top npalardy Post subject: Re: Another Question About ReportsPosted: Tue Oct 20, 2009 9:48 pm Joined: Sat Dec 24, 2005 8:18 pm Posts: 5343 Location: Canada, Alberta, Near Red Deer create a group section select the group section and set the group by field - use the name of whatever the column holding the "12m", "1a" column is place that same field on the group section implement it's before print event so you can take the 12m and make it appear as 12 etc you can "group by" something that does not appear on the report in a label or field _________________ My web site Great White Software RBLibrary.com REALbasic learning Top tcbasic Post subject: Re: Another Question About ReportsPosted: Tue Oct 20, 2009 10:27 pm Joined: Sat Jun 30, 2007 11:21 pm Posts: 60 Location: Pembroke Pines, FL (USA) Thanks Npalardy, that did the trick. Tom Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
