Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ole Automation at VB.NET

Status
Not open for further replies.

swreng

MIS
Jun 22, 2006
90
GR
Dear all,

I am wondering if there is any easy object in vb.net in order to use OLE AUTOMATION as this in simple vb (OLE)which you can manage anything like Excel,Word,PowerPoint,Jpeg,videos......
and many other files. Is there any similar in default objects of .net, or as third part object?

I will appreciate any info.

Many Thanks
 
Most applictions carry their own object (DLL) to connect to. Otherwise, you're stuck with the Shell function.

Dim XL As Object
XL=CreateObject("Excel.Application")


I hope this helps.

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
Hello Ron,
I think that swreng would like a control like the vb6's ole automation. If i am right, then - swreng - right click the toolbox and select 'Add/Remove Items...'. In the COM tab, there must be an ole control.

Not sure, but give this a try
 
Unfortunately Microsoft did not include this functionality in .NET 1.0 and 1.1, in .NET 2.0 they did in early betas and then decided to remove this feature from the release version.

In most cases it is possible to come close to what you need by using the WebBrowser control and Navigating to the file you want to open - although this is definitely not a perfect solution.


Hope this helps.

[vampire][bat]
 
Ok I understand.
Thanks to all for the info.
Does anyone know if there is as third part object?
Or any links with companies, which they sell third part objects?

Many thanks again
 
I've looked several times over the last couple of years, but without success.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top