Article Preview
Buy Now
FEATURE
Reporting with REALStudio
Get started with the report writer.
Issue: 10.1 (November/December 2011)
Author: JC Cruz
Author Bio: JC is a freelance engineering writer from North Vancouver, British Columbia. He frequently contributes articles to MacTech and REALStudio Developer, and for the now defunct Python Magazine. He also covers advanced topics for the new Dr Dobbs Journal e-zine. Away from the writing pile, JC spends quality time with his foster nephew, as a proper uncle should. He can be reached at
Article Description: No description available.
Article Length (in bytes): 33,235
Starting Page Number: 47
Article Number: 10008
Resource File(s):
10008.zip Updated: 2011-11-01 12:14:31
Related Link(s): 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.