16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

fields are shown in the Variable/Field list box as soon as you assign a database to<br />

the document. They can be entered in the formula with double clicks.<br />

As an example, we want to create an invoice form that can be easily printed as a<br />

form letter. For this, all we need is a database whose fields contain the customers’<br />

personal data (name, address, etc.). Beyond that – we’ll simplify things and allow<br />

only one item per invoice – the database should contain a QUANTITY field for the<br />

order quantity, an ITEM field for item designators and a PRICE field for the unit<br />

price.<br />

Proceed as follows:<br />

1. Create a new document with File > New.<br />

2. Assign an appropriate database to it with Tools > Set Database (see below for<br />

an example).<br />

3. Next, create a normal form letter, as described in chapter “Database”. Insert the<br />

database fields containing the relevant customer data (address, etc.) at the proper<br />

places in the letterhead.<br />

4. Now design the invoice itself according to your tastes. Enter fields from your<br />

database with Insert > Field > Database field – for example, the QUANTITY<br />

field for the order quantity.<br />

5. And now the main point: You can calculate with the database fields. For example,<br />

the formula QUANTITY*PRICE calculates the total for the current database<br />

record. So, using Insert > Calculation, insert appropriate calculations at<br />

the desired positions.<br />

6. When everything has been entered, you can save the document. Next, select<br />

some database records and print your invoices with File > Print Merge.<br />

You will find an example in TextMaker’s document folder: the files INVOICE.TMD<br />

and INVOICE.DBF.<br />

Tip: If you check the Display field names option on the View property sheet of the<br />

File > Properties dialog, you will see the formulas themselves, rather than the<br />

results they give, and you will then better understand how this self-calculating<br />

form letter works.<br />

366 Calculations in the text Manual TextMaker

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!