Reporting with REALStudio
Get started with the report writer.
Issue: 10.1 (November/December 2011)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 19,679
Starting Page Number: 47
RBD Number: 10008
10008.zip Updated: Tuesday, November 1, 2011 at 2:18 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
The report writer feature is a recent addition to the REALStudio environment. So today, we take a good look at this feature and learn how it benefits our project. We will study how to lay out a report form and how to define the model for that form. Then we will modify an existing REALStudio project, giving it the ability to emit a simple report.
Need To Report
With earlier versions of REALStudio, we use the Graphics object to layout and print user data according to a pre-defined standard. Unfortunately, this approach is both costly and tedious. It makes multiple pages of output difficult to manage, and it is easily affected by changes in output resolution. Furthermore, changing the print layout often requires changing the print code as well.
Enter the report writer
So to address the above need, REALStudio 2010 comes with a report writer feature. With this feature, we can design a report form with the same ease as laying out a user interface. We can map each form widget to a record field, thus reduce the code needed to use the form. We can add graphics to the form, as well as date/time stamps and page numbers. Plus, we can have two or more distinct report forms using the same data source.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.