Some of that sounds curiously familiar - you don't happen to work for Kent
Fire Brigade by any chance?
But in essence, there's no wriggle room in the process that kicks off the
merge.
I suppose one question to ask is, can VB for Word be coded in such a way
to
produce an HTML table or other format as you suggest below? If so, this
could
potentially be an avenue worth exploring.
This is all rather speculative as I don't know exactly what their code does,
but...
a. if they are using the Word object model to create a Word document for
use as a data source, the simplest /type/ of change they could probably make
would be to generate a Word document with a different internal format -
that's regardless of whether they are using Word VBA, or the "full" VB,
VBScript or some other application's VBA, as long as it's capable of driving
the Word object model.
b. if they are currently generating a Word table, the simplest change is
likely to be to generate a Word document with "delimited text", e.g.
columnname1,columnname2,columnname3
row1value1,row1value2,row1value3
row2value1,row2value2,row2value3
To do that safely they would have to ensure that columns that might contain
delimiter characters (in this case double-quote, comma and CR or CRLF) were
probably wrapped up, typically by wrapping them in double-quotes and
doubling up any double-quotes inside the values.
However, with VB/VBA you can create any type of plain text file you want.
You would just have to work at it a bit harder, i.e. the code would look
somewhat different. You could also (for example) create a Jet/Access
database "on-the-fly" (you don't need Access either to create it or use it),
or an Excel workbook "on-the-fly". In each case you need to know that the
machine on which the code actually runs has the necessary "MDAC" objects and
you might have to set up a couple of other things.
In answer to your other question, the data is being supplied by a view so
it
might be possible to connect to that directly but this again makes the
final
solution more complex and less user-friendly which is one of the primary
requirements for this project!
Well, I know what you mean but I'm not convinced that it would necessarily
make things more complicated /for the end user/, because it would typically
be possible to set the connectin up in the document, or have a very small
amount of Word VBA to set it up. But again, tthe conditions have to be
correct on the end user system - for example, you may have to deal with the
problem described in
http://support.microsoft.com/kb/825765/en-us, and that
requires a registry change - if it's justy one machine, perhaps no oproblem;
if on thousands there may be difficulties. And it's not the sort of thing
that's simple to investigate without being in front of one of the machines
in question.