Merging in a file at a URL

P

Peter Jamieson

That's just the way it is. I don't know whether this is "by design" or
whether it's simply that WOrd uses different methods to open files depending
on what it is doing.

Things may have changed for INCLUDETEXTing files in Word 2003, but I don't
think there is an equivalent change for Mail Merge data sources.

--
Peter Jamieson

vhikida said:
Why is it that I can open a word document at a url eg

x.Documents.Open("http://xxx/template.doc",false,false);

but I can't get the data source to merge in eg
x.application.ActiveDocument.MailMerge.OpenDataSource("http://xxx/source.txt
");
 
V

vhikida

Thanks Peter.

How can I feed back a file back to the client to be merged? Can I merge in a
cookie?
 
P

Peter Jamieson

I suspect the only viable options are:
a. to copy the file programmatically to the client system.
b. (maybe) to have a Jet .mdb on the client system, or create one
programmatically using ADOX, then link to the text file and use the linked
table as your data source. I don't know if that is feasible, and I have to
say I wouldn't want to have to rely on it.
 
V

vhikida

Thanks Again Peter. I'm afraid I'm pretty much of a novice in this area so I
didn't quite understand your solutions. However, I did find a solution that
may work for my users.

Basically I created a web page with two buttons. Since I can open a word
document at the URL, I have the user open the source text file in word using
one button. The user then saves the text file.

There is an input text area where the user can specify the file name and
path of the text file. The second button then opens the mail merge template
and then merges in the local file specified in the text area.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top