|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
ActiveX dll with VB.NET
Hi All,
Is there a way to build a COM component as an ActiveX dll with VB.NET and then use it with a web application written in ASP.NET? Thanks. |
|
#2
|
|||
|
|||
|
you can just create a regular class library that will compile to a dll and use that.
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
Thanks for your reply.
Another related question I have is that, How can I use COM objects, say I wanna automate some word document, How can I use the word COM objects. Do I have to add a reference to my project? thanks!! |
|
#4
|
|||
|
|||
|
yes you do. in the menu click Project > Add Reference and then click the COM tab. find the one you want to work with.
if you want to work with an activex control then in the main menu under Tools > Customize Toolbox... and click the COM Components tab and check all the necessary components you want. |
|
#5
|
|||
|
|||
|
3rd party application
Thanks for the reply again.
I have a last question and it is that I have a 3rd party application which generates reports and now I have to automate the report generation. I achieved this using VB 6 and that 3rd part App has objects which are similar to objects of any other App like Word, Excel etc. Now i have to do this automation using VB.NET. The problem is that when i go to Add its reference, I dont see it under the COM tab. Is there a way, I can add the COM objects of that 3rd party app in that list, so that I can use those objects in my project. Again as I said, the automation of that App is possible since I did that in VB6. Thanks again Dude! |
|
#6
|
|||
|
|||
|
when you are on the COM tab click Browse... and find the dll. if you are unsure of where the dll is use vb6 and it should tell you the location of the dll.
|
|
#7
|
|||
|
|||
|
Thanks
Thanks man..But bad luck still on my side!
I can see the type library in my VB 6 project for that 3rd party App, but can't see the full path as its hidden due to the size of the Vb dialog box and it seems I cant expand it. LOL. ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > ActiveX dll with VB.NET |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|