The macro connects to a SQL database and populates the fields of the template. The output is stored in one big single PDF file to make printing easier.