GENERATE MAIL MERGE A4 LABELS FROM AN AD-HOC REPORT
Create Label Template
The same template can be used multiple times by refreshing the data in the spreadsheet and overwriting the original spreadsheet with the updated data. The field names must remain the same on each sql export.
- Launch OpenOffice Writer.
-
OpenOffice Writer defaults all documents to be in a book style format and you should amend the print settings as follows to avoid printing a blank page between each printed page.
-
Click the Tools Menu and Options.
-
Click the + symbol to the left of Open Office Writer
-
Remove the tick from Print Automatically Inserted Blank Pages. >

To link your spreadsheet so that you can import the data saved on the spreadsheet into your labels, you need to identify the spreadsheet as a database in the Database Selection box. To do so:
-
Click Field>Other from the Insert menu.
-
Click on the Database tab and then click on Mail Merge Fields.
-
Click Browse in the Add Database File section. Browse for and double-click your saved spreadsheet.
Close the Insert Fields selection box.
-
Now select New>Labels from the File menu.
-
Click on the Options tab and select Entire Page and Synchronise Contents.
-
Click back on the Labels tab. Your linked spreadsheet will now be available for selection in the Database box..
-
In the Tables box select Sheet 1.
-
Your fields will now be available for selection in the Database Fields box. Add the relevant fields to the label layout by clicking on each field and clicking the left arrow, making sure that you reposition the cursor after each entry.
-
In the Format box, click Sheet.
-
In the Brand box, select the brand of labels that you are using, eg Avery A4.
-
In the Type box, select the label reference for the type of labels that you are using, eg L7160 or L7161.
-
Click New Document and the current document now becomes your label template. You can save the template at this point if you wish, or save it later when completing the merge.
Run the Ad-hoc Report
- Select Reporting>Ad-hoc Reporting.
-
Click Open then search for and double-click the required report.
-
Execute the report and then click Spreadsheet on the toolbar. The report results will be displayed in a spreadsheet. Each entry on the spreadsheet will result in a letter being produced for that client.
Save the spreadsheet. The name is important as this will be linked to the mail merge template. If you use the same name each time, but just update the data, then this will simplify the merge routine.
Completing the Merge
Open your template (if it is not already open) and select Mail Merge Wizard from the Tools menu.
- Select starting document: Leave as Use the Current Document and click Next.
-
Select document type: Leave as Letter and click Next.
-
Insert address block: Check that the correct spreadsheet is > listed as the Current Address List and click Next.
-
Create a salutation: Click Next.
-
Edit document: Click Next.
-
Personalise the document: Click Next.
-
Your options now are as follows. You can choose each of them in turn.
-
Save your starting document – There is no need to save your > starting document as the template has been previously saved.
-
Save merged documents. To save your merged document/s, click > this option, click Save as a single document and click the > Save Documents button (taking care not to overwrite your > template when naming and saving your merged document/s).
-
Print merged documents. To print your labels, click this > option, check that the correct printer has been selected in the > printer box. Click Print all Documents and click the Print > Documents button.
-
Click Finish when complete and close all documents.