The basics of printing
Issue: 9.3 (March/April 2011)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 16,873
Starting Page Number: 63
RBD Number: 9310
9310project.zip Updated: Wednesday, March 2, 2011 at 1:47 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
We haven't covered printing often in this magazine so I thought this would be a good time to explore the basics of printing.
In principle, printing is no different from drawing regular graphics. A printer returns graphics object just like a canvas or picture and you can just draw into it. But even regular graphics can be tricky to draw and there are a few differences when drawing to a printer.
Because of that I like use a print preview window for testing all my printing-related routines. This has two benefits. First, it allows me to test printing without wasting a lot of paper. Second, it automatically provides my user with a print preview feature, if I want that (I can use it just for testing if that's all I need).
For today's lesson I've put together a demonstration of a simple print preview feature. We can use that to explore the effects of our drawing commands. In the next issue's column we'll explore printing a little deeper with a practical demonstration application.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.