Article Preview
Buy Now
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):
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.