T
TTT
We are building a database solution for a large client and need to build
complex reports with Word.
To paint a picture:
The database solution we are building creates a data file which is used
in the merge process. We launch a template and macro, and a new
document is created based on the data within the data file. This all
works well.
We need to extend this functionality and do some complex stuff with
mail merge (or any other method if necessary).
We need to produce a report (i.e. the Word document), which is a
collection of data from different tables/sources.
The report will have different sections such as Employment History and
Education History (and more). These sections are really individual mail
merges themselves, which read data from different sources.
The sections will have a series of fields on a single page - and each
record within the data file will merge into its own page - we're not
bringing them into a table.
This isn't too complex, but that's not where the problem lies.
If you imagine several sections similar to that described above, each
requiring a different data source, and then all this merged into one
document.
It's almost like we're trying to "Include" smaller merges into a larger
one, just like you would use "Include" in HTML or other programming
languages.
We figure that we might need to perform each section as individual
merge documents, and then some how bring these files into the main
one.
We've even toyed with the idea of creating the sections as MS-Word
Objects embedded into the main document. Which sounds kind of right -
except we couldn't figure out how to trigger the merge within the
embedded object. Triggering the merge manually within the embedded
document tries to create a new document - which screws up our
automation process.
OK - lots to digest - Assistance is greatly appreciated.
Thanks.
complex reports with Word.
To paint a picture:
The database solution we are building creates a data file which is used
in the merge process. We launch a template and macro, and a new
document is created based on the data within the data file. This all
works well.
We need to extend this functionality and do some complex stuff with
mail merge (or any other method if necessary).
We need to produce a report (i.e. the Word document), which is a
collection of data from different tables/sources.
The report will have different sections such as Employment History and
Education History (and more). These sections are really individual mail
merges themselves, which read data from different sources.
The sections will have a series of fields on a single page - and each
record within the data file will merge into its own page - we're not
bringing them into a table.
This isn't too complex, but that's not where the problem lies.
If you imagine several sections similar to that described above, each
requiring a different data source, and then all this merged into one
document.
It's almost like we're trying to "Include" smaller merges into a larger
one, just like you would use "Include" in HTML or other programming
languages.
We figure that we might need to perform each section as individual
merge documents, and then some how bring these files into the main
one.
We've even toyed with the idea of creating the sections as MS-Word
Objects embedded into the main document. Which sounds kind of right -
except we couldn't figure out how to trigger the merge within the
embedded object. Triggering the merge manually within the embedded
document tries to create a new document - which screws up our
automation process.
OK - lots to digest - Assistance is greatly appreciated.
Thanks.