RB Report Page |
|
Download Credits ![]() |
RB ReportPage
is a RealBasic class (and a couple of small support classes) to simplify
generating reports. This project provides a GUI based layout method using
the RealBasic IDE. The RB ReportPage Class is useful when you want some information printed on a page and only intend to have a fixed page layout - an example would be an invoice - your details at the top, your customers details, a list of products and some general info and total at the bottom. Each invoice appears the same with some difference in data shown. You may also have a page one and page two (with two removing the bottom info and showing more products than the first page to accommodate large purchases ) If you want a report that will continue on over any number of pages until all data is displayed then this will not meet your needs. To use Report Page :-You may copy and paste the classes provided or you may make them external and add them to each project that you want to use them in.Place a ccReportPage on your window and then place child controls onto it. It is best that the size of the ccReportPage match what you expect to be used for printing (scaling is available but not perfect yet) The main controls you use will be StaticText, EditField and Listboxes but you can also use Lines, Rectangles, RoundRectangles and Ovals A custom canvas Control that you can sub-class is also supported which allows your own drawing commands to be unique to your report including logo's etc. A catchall of any RectControl which attempts to get the control to drawinto is in place but is of limited quality. To print your report you call ReportPrint after you have done your
pagesetup/restore and openprinterdialog |