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 7.4

FEATURE

Printing with Templates

Instead of making your simple app support complicated printing, why not use a pre-formatted template instead?

Issue: 7.4 (May/June 2009)
Author: Jens Bendig
Author Bio: When he was young Jens Bendig was fascinated by three things: motorbikes, computers, and movies. Now he rides a motorbike, produces animated movies, and develops software. He seems to be a straightforward character.
Article Description: No description available.
Article Length (in bytes): 16,436
Starting Page Number: 24
Article Number: 7411
Resource File(s):

Download Icon 7411.zip Updated: 2009-05-01 11:25:18

Related Link(s): None

Excerpt of article text...

At the REALbasic Developer Conference in Frankfurt at the end of 2008 at least two developers talked to me about how to generate print files. They seemed to think this was something like brewing magic potions in Professor Snapes lessons!

Both developers were surprised to hear that I print several standard letters with my software without experiencing all those problems. But I'll let it out at the beginning: I am cheating.

Instead of worrying about the complexities of formatting styled text and printing it on different platforms, I build new "print" documents from a pre-formatted template file. That way I don't care about the structure or design of that file, or have to code my own printing routine. Instead I just care about placing the new content within the existing template file.

...End of Excerpt. Please purchase the magazine to read the full article.