SunQuest
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 19th, 2003, 08:24 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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.

Reply With Quote
  #2  
Old July 20th, 2003, 10:23 AM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
you can just create a regular class library that will compile to a dll and use that.
__________________
Programmer's Corner

Reply With Quote
  #3  
Old July 20th, 2003, 04:15 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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!!

Reply With Quote
  #4  
Old July 20th, 2003, 06:26 PM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
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.

Reply With Quote
  #5  
Old July 20th, 2003, 06:30 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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!

Reply With Quote
  #6  
Old July 20th, 2003, 06:33 PM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
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.

Reply With Quote
  #7  
Old July 20th, 2003, 07:05 PM
ricky_arora ricky_arora is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 9 ricky_arora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ricky_arora
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.



Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > ActiveX dll with VB.NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway