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 15 in printed book and digital formats -- plus a one-year subscription 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



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
Article Description: No description available.
Article Length (in bytes): 14,106
Starting Page Number: 24
RBD Number: 7411
Resource File(s):

Download Icon 7411.zip Updated: Friday, May 1, 2009 at 11:36 AM

Related Link(s): None
Known Limitations: 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.

That's easy! Perhaps it's too basic for an article, but since these developers hadn't used this approach, perhaps others out there will benefit from the same technique. So here goes.

Don't generate a printable file -- just let your program fill a template

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

Article copyrighted by REALbasic Developer magazine. All rights reserved.




Weblog Commenting and Trackback by HaloScan.com