How to automate Word Doc under Web browser Control

G

Guest

Does anyone know how to automate word doc under web browser control?

I'm creating a program with VB.NET 2005. The program will open a word
document under web browser control. And the program has a few buttons which
the users could click on them and perform some tasks with the word document
under web browser control.

My question here, how to automate the Word doc under web browser control?
For example, I would like to use VB code to move the cursor inside the word
doc, or add some text in the document, or doing anything you can do with VB
macro codes.

Can anybody help? Thanks.
 
C

Cor Ligthert[MVP]

Hi,

Seems to me a little bit impossible, you can interop with word and you can
interop with a webbrowser.

What you ask is in my idea the same that you let somebody else drive your
car, however you want to control the steering wheel.

Cor
 
G

Guest

Hi Cor,

Since this approach is not possible, is there any other way to do this like
using other controls instead of web browser control? Is there any other
contol can contain Word doc?

All i need to do is to contain opened Word document under my Form, and then
let users having the freedom to perform some special tasks on the word
document by clicking those buttons on the Form.

Please kindly advise. Thanks.
 
C

Cor Ligthert[MVP]

JCheah,

There are plenty of possibilities, however not as you state it, I assume
that you even are violating the licence rights of word doing that. But you
can do word automation in a lot of ways, which is as well dependend of the
version of Visual Studio that you have. Starting from version 2005 there are
complete tools build in the sold versions from that.

Cor
 
G

Guest

Hi Cor,

Can you explain why i'm violating the licence right of doing this since i'm
creating the whole program on my own? I really don't want to get involve in
any legal issue. Please advise. Thanks.
 
C

Cor Ligthert[MVP]

JCheah,

I am not sure of if you are vialating the rights of Microsoft. However as
you tell it, it will look like a product you made while it is a Microsoft
product. Microsoft has done a lot to show if it is a legal version. How do
you want to do that in your product. In your case I would first ask it to
the local Microsoft office if it is allowed what you want to do.

Assuming that you are making this not all alone for the use of yourself.

Cor
 

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