Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 10.1 ('Reporting')
Instant purchase and download via GumRoad!

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 anarakisware-at-gmail-dot-com.
Article Description: No description available.
Article Length (in bytes): 33,235
Starting Page Number: 47
Article Number: 10008
Resource File(s):

Download Icon 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.