New topic: Trouble with reports
<http://forums.realsoftware.com/viewtopic.php?t=30560> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message tcbasic Post subject: Trouble with reportsPosted: Mon Oct 19, 2009 9:12 pm Joined: Sat Jun 30, 2007 11:21 pm Posts: 56 Location: Pembroke Pines, FL (USA) Hey All, So I'm trying to figure out how to get the report feature working for me using data that is not from a database. I've looked at the RB Reporting Example (over and over) and have done my best to create and print a report on my own. However, when I get to the line Code:If rpt.run(ds, ps) then ... end if I get a NilObjectException error. When I run the debugger to see what object is Nil I can't figure it out. None of my objects are showing Nil (they all have a value). I think my problem lies in the Reports.DataSet object I've created. I don't think that my data is rendering properly inside the Field(String) As Variant function. Now I realize that to get an answer to what is causing my problem I'll need to post my code. However, before I do that I was wondering if there was anywhere else I could look at an example of a report created with the new RB Report feature that uses data NOT from a database. Short of that, I'd love a brief explanation of how the Reports.DataSet object is supposed to be set up so that the data is rendered properly. As always any help or suggestions are greatly appreciated . Thanks! Tom RB 2009r4 Windows Vista Top Phil M Post subject: Re: Trouble with reportsPosted: Mon Oct 19, 2009 10:32 pm Joined: Fri Sep 30, 2005 12:18 pm Posts: 159 Sounds like something similar to this forum post: http://forums.realsoftware.com/viewtopic.php?f=1&t=30237&start=0&st=0&sk=t&sd=a Top npalardy Post subject: Re: Trouble with reportsPosted: Mon Oct 19, 2009 10:52 pm Joined: Sat Dec 24, 2005 8:18 pm Posts: 5342 Location: Canada, Alberta, Near Red Deer tcbasic wrote:Hey All, So I'm trying to figure out how to get the report feature working for me using data that is not from a database. I've looked at the RB Reporting Example (over and over) and have done my best to create and print a report on my own. However, when I get to the line Code:If rpt.run(ds, ps) then ... end if Try looking at the Gas Report which is an example of data NOT coming from a database It's probably a better place to start _________________ My web site Great White Software RBLibrary.com REALbasic learning 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]
