
Question: Producing reports throught Word/other OCX.
We have developed an application where a user can type in an RTF format
report against a customer record. This report is cross referenced in our
database and stored in a seperate file on the PC.
There is a requirement to print out these typed reports but with a user
defined header and footer.
i.e. the user can set up a header block in another component to position
things such as customer name, address, order number etc.
How would be be best knitting these items together?
A gut feeling was using OLE automation and Word, but how do we control the
header/footer details? (We cannot just join the three parts as the typed
report may force a new page and the headers and footers need to be on every
page).
Can we override the usual Word header/footer left/centre/right
justification for positioning our data items?
If not could we convert the headers into BMP files and then insert them?
Another option was the VS View OCX. This offers similar functionality but
is lighter. The same questions still need answers though!
Any advice/pointers on this matter would be of great help.
Thanks in advance.