Project Description
This application demonstrate the capacity of the OpenXML format to easily interoperate with any application to generate standard reports, standardized documents such as authorization forms or any document used by general public.
The template consumer demonstration application is composed of two parts. First an add-in for the Microsoft Office Word 2007 that will allow any person to intuitively create templates. And an application that will generates filled documents based on templates created with the add-in.


Use Requirements
Microsoft Office Word 2007
.Net Framework 3.5

Development Requirements
Microsoft Office Word 2007
.Net Framework 3.5
Visual Studio 2008


Variable: Variables are just a pair (name, content) that is given to something in the text that you would like to become a template, like the name of a company.
Fields: Fields are areas in the document associated with variables that displays the variables content.

Usability
*Creating a Variable:
Click the button Create in the Variable creation Group, you will be presented with a window, fill in the variable name and select it’s type, then click ok. You can repeat this process as many times as you want.
*Creating a Variable Field:
Once you have a variable created, it is possible to insert content fields for it, to do so, select the variable in the Variables Drop Down and click the Add Variable Field Button in the Variable Edition Group. You can do that as many times as you want.
Note that you must select a position in the text before adding any field; you can also replace any text in the document for a variable field.
*Filling the Fields:
To fill a Text Field, you can Click the Button Fill Variable in the Variable Edition Group, or just select the Variable in the Variables Drop Down and fill the Variable Text Textbox.
If you click the Fill Variable Button you will be presented with a Grid with all Text Variables, just fill its values and click Apply.
Once you change a variable field value, this value will be presented in every field that belongs to the selected variable. For text fields, you can also select any field in the document and change it manually, note that all changes made that way to the text will be propagated to the other fields that belongs to that variable.
For image fields, you can only change is content in the field it’s elf, and it works the same way as the text field, once you change the content of that field, all fields belonging to that variables will have its content changed to match the new content selected.
Removing Fields:
To remove a field, select it, and click the Remove Variable Field Button in the Variable Edition Group. Note that you need to select the field, not it´s text. You can also select a range and click the Remove Variable Field Button, and it will interpret that it must remove every field in the selection.
*Deleting Variables:
To delete a Variable, just select the variable in the Variables Drop Down and click the Delete Variable Button in the Variable Creation Group.
To delete a Variable

TODO: Code Comments in English.

Last edited Feb 26, 2008 at 6:44 PM by MICPETROPOLIS, version 3