Ole Container

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

Does anyone know of a compareable Ole Container that will allow read/write
so that I could host say a word document within my vb.net app?

I realize the vb6 version is dead. I looked to see if I could download it
but couldnt find it anywhere just to see if I could make it work....

Would the web browser control work?

I am kind of desperate here so help is appreciated....
 
Hi Scorpion,

You got your answer from Herfried, but to give you an answer for this.
Would the web browser control work?
If you cannot do something with IE you also cannot do it with the
webbrowser.

Cor
 
Cor,
Is it possible to send commands to the web browser control to do something
within a vb.net appllication say within a button click event?
 
Hi Scorpion,

Of course you can,

A little example,

Open a new windows application project

In the toolbox rightclick and select add/Remove items

In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
///

I hope this helps a little bit?

Cor
 
Ok,
Add another button.
Now replace www.google.com with a test.doc on your hard drive. Navigate
there.
Now make changes to the document and save....
Now have button2 when clicked save the chnages.
Have the button click save the changes.
Reload the changed document.

Is this possible?
 
Let me try that again:

Add 2 more buttons...

replace www.google.com with test.doc on your hard drive.

load the document as you did in button1

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?

Sorry for my disjointed post a sec ago....
 
Back
Top