468,110 Members | 1,793 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,110 developers. It's quick & easy.

Automation and .NET (NEED HELP PLEASE)

Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser control
as the replacemnt for the Ole Container that existed in vb6. It is a vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have
it exist within the app and I told him that I could do this not remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....
Nov 20 '05 #1
3 945
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1

Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser control as the replacemnt for the Ole Container that existed in vb6. It is a vb.net windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have
it exist within the app and I told him that I could do this not remembering the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not sure if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....

Nov 20 '05 #2
I figured something out.......Thank you.
"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1
Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser

control
as the replacemnt for the Ole Container that existed in vb6. It is a

vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have it exist within the app and I told him that I could do this not

remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not

sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....


Nov 20 '05 #3
I figured something out.......Thank you.
"Chris Taylor" <ch*************@hotmail.com> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

See if the following helps

http://support.microsoft.com/default...NoWebContent=1
Hope this helps

Chris Taylor
"scorpion53061" <sc****************************@yahoo.com> wrote in message news:eU**************@tk2msftngp13.phx.gbl...
Hello,

This is a post that started in the vb.net newsgroup that I am having
difficulty in getting answers to. It involves using the web browser

control
as the replacemnt for the Ole Container that existed in vb6. It is a

vb.net
windows app. If anyone and I do mean anyone has answers to this please
help.....I am a little under the gun as the boss indicated we need to have it exist within the app and I told him that I could do this not

remembering
the Ole Container was dead.

I also have Visual Studio Tools for Office 2003 installed but I am not

sure
if that will help. It needs to work for Office 2000,XP and 2003.

Open Visual studio start a new project, add 3 buttons to form1 and the
(Ax)WebBrowser control.

load the document with teh button1 click event:

AxWebBrowser1.Navigate("C:\test.doc")

(Can this dialog that appears be turned off programmatically(asks if it
should open or save)?)

Make changes to the document by typing.

Have button2 do something like insert text into the document (something
along the lines of what you would do if automating the document.)

Click button3 to save the document and reload with the changes.

Is this possible?

Thank you all for any help you might be able to give....


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

25 posts views Thread by Neil Ginsberg | last post: by
6 posts views Thread by Frank X | last post: by
2 posts views Thread by Alfredo Magallón Arbizu | last post: by
6 posts views Thread by a.theil | last post: by
1 post views Thread by electrixnow | last post: by
22 posts views Thread by liya.tansky | last post: by
10 posts views Thread by cj2 | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.