Gene,
It is do-able... we've toyed with this, and I can share with you some
principals of what to do.
In Word, if you create a document template and include Bookmarks wherever
you wish to replace text, we found that was the best method. You can then
use that template to create a new document. The psudo code looks something
like:
Dim wrd as new Word.Document
wrd.Create (Template:="c:\wherever\mytemplate.dot")
wrd.Bookmarks("Sender").Text = "Jon Grieve"
wrd.SaveAs "c:\wherever\foo.doc"
...you get the idea.
While Witango can talk to OLE providers, it doesn't talk to the Office OLE
components too well -- due to the type of OLE implementation. We found that
we had to code a VB 'wrapper' to Office.
So, you end up with a template document which you modify via OLE.
Regards,
Jon
-----Original Message-----
From: Gene Wolf [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2002 1:15
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: Tango and Word
This may seem like an odd request, but is there any way to set up a
parameter in a MS Word document that could be changed by a Witango program?
I have a client that wants to attach word documents to email messages, and
wants them customized based on the results of a Witango program output.
Does anyone know if this can even be accomplished? Platform is Windows
NT Tango 2000.
As Always,
Gene Wolf
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body