Email a word doc edited in IE

C

Chris Morledge

Hi all,

I have been working our local intranet and have been
asked to allow someone to open an office document (e.g.
Word) in IE and then edit it and then email it to the
relevant person.

I have approched this by creating a VB control and adding
a webbrowser control to it. Then I get it to autoload the
the word doc into it and then when they click the email
button I try and get it to save the active file locally
to the users machine and then email that saved file to
the recipient.

The problem I have hit is that I cannot save the active
document. I have tried the "URLDownloadToFile" API but
that just downloads a currently saved file. I have tried
the "WebBrowser1.ExecWB OLECMDID_SAVEAS,
OLECMDEXECOPT_DONTPROMPTUSER" which although saves the
file. It does not let me choose choose where the file is
saved to or under what name.

Please could someone let me know if there are any other
functions or methods that I could use to save the active
document or if I am going about this whole thing
completly the wrong way. I am not expecting anyone to
write the code for me, I am just looking for a push in
the right direction.

Thanks for any help
Chris Morledge
 

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