Friday, July 10, 2009

MS Word and problems formatting merged data

I have developed a simple template in Word 2007 that reads information for invoices from a MS Acess Data Base. It is very cool because using Word's mail merge functionality I can print invoices easily.

The system has 3 parts:

  1. A Windows SharePoint Services intranet. There we include all the new orders from customers into a list called "invoices", that list is related to another one named "Accounts" that provides the name and details about customers.

  2. A MS Access DB merges both SharePoint lists and filters all what has been invoiced in the past.

  3. A MS Office Word document template that receives the processed information from Access and create the invoices.

The problem is that Word does not formatt the information correctly. For example the amounts that are formatted as "currency" doesn't display the currency symbol; or the dates are displayed in american formatting (month/day/year). So how to change it?

There is something called "switches". Click here to find all of them.

So, once you know which kind of switch you need to use, yo will need to do the following:

  1. Select the merged field

  2. on your keyboard press "Shift+F9" and you will see that the field changes

  3. Add the switch

  4. "Shift+F9" again

  5. Right click on the merged field and select "Update field"



0 comments:

Tu comentario será moderado la primera vez que lo hagas al igual que si incluyes enlaces. A partir de ahi no ser necesario si usas los mismos datos y mantienes la cordura. No se publicarán insultos, difamaciones o faltas de respeto hacia los lectores y comentaristas de este blog.