|
-
Nov 23rd, 2000, 01:22 AM
#1
Thread Starter
Member
I need to run an application (.exe file) written using VB when a page is load..( meaning in the HTML file). Pls help.
-
Nov 23rd, 2000, 11:16 AM
#2
Hi,
I hate to tell u this, but for security reason client side JavaScript/VB Script isnt allowed to excute any files on the client system.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Nov 23rd, 2000, 01:51 PM
#3
Frenzied Member
Perhaps you could write a control to use in the browser that could call your exe, or maybe even make your exe a control.
Harry.
"From one thing, know ten thousand things."
-
Nov 24th, 2000, 01:05 AM
#4
Thread Starter
Member
can u pls explain how should i write a control to use in the browser that could call your exe, or maybe even make your exe a control ?
-
Nov 24th, 2000, 05:20 PM
#5
Hi,
You can create the control in VB as an ocx and embed it in vb.
Check this
http://members.tripod.com/datique/ocx/Project1.HTM
The Source is here
http://members.tripod.com/datique/ocx/Project1.zip
If you want more information on how to create ActiveX control then check out the VBWorld ActiveX Section
http://www.vb-world.net/activex/
Hope this helps
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Nov 27th, 2000, 12:31 PM
#6
Black Cat
Note that ActiveX controls rely on the browser being IE, and it will pop up a security message allowing the user to refuse to download it.
Josh
-
Nov 28th, 2000, 09:19 AM
#7
Thread Starter
Member
Creating a webpage that can load the ActiveX control when loaded
I have create an ActiveX control can anyone advice me on how should i go about creating a webpage that contains the ActiveX control. Thanks
-
Nov 28th, 2000, 03:35 PM
#8
Black Cat
VB should be able to automatically make a web page container for your ActiveX control. If not, open your favorite web page editor and see if there is a choice for inserting the ActiveX control.
Also, here's some VERY ROUGH code I had handy:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<BODY>
<OBJECT
classid=clsid:8B5FC689-93B9-11D4-A0E7-005004D0A9E3 name=sh>
</OBJECT>
<script language=vbscript>
sh.exShell "C:\Program Files\Microsoft Office\Office\Msaccess.exe", "d:\data\current.mdb"
</script>
</BODY>
</HTML>
Josh
-
Nov 28th, 2000, 08:37 PM
#9
Hi Cassandra,
If you want to embed an custom made ActiveX control on a web page use the "Package & Deployment Wizard" which comes with VB.
Run the P&D, Browse and find your project, Click on the Package button, click next, Choose the "Internet Package", and you need to click next few more times before the wizard creates the neccessary HTML files for you to upload.
The reason you need the P&D is because you need the CLASSID which is a unique ID assigned by VB when you compile the project. Using this classid u can embed this ActiveX control in any HTML Page.
Hope this helps.
Tip Taken from VB-World)
Every time you compile your control, Visual Basic creates a new class ID for it. That means you have to modify your HTML code everytime you compile your project.
You can fix this problem by clicking on Project, Properties, 'Component' tab and in the Version Compatibility frame, select 'Binary Compatibility' and choose your freshly compiled OCX file.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Nov 29th, 2000, 08:04 AM
#10
Thread Starter
Member
I encounter error when "Packaging" the ActiveX document. Below is the error message pls help.
Missing Dependency Information
XL5EN32.OLB c:\program files\microsoft office\office
-
Nov 29th, 2000, 08:29 AM
#11
Thread Starter
Member
Sorry i am referring to ActiveX control.
-
Nov 29th, 2000, 04:35 PM
#12
I have both of these files, if u want i can mail them to u.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Nov 30th, 2000, 12:23 AM
#13
Thread Starter
Member
Ok thanks. My email address is [email protected]..
-
Nov 30th, 2000, 03:32 AM
#14
Thread Starter
Member
ClassId
I have already Package my project, so what should i do next. Also where can i get/read the Classid and how should i insert it into the HTML page. Pls advice.
-
Nov 30th, 2000, 07:19 AM
#15
Hi Cassandra,
As i said in my earlier reply, once you have fishised the project you need to use the Package & Deployment wizard to Pacakage it. Make sure you choose "Internet Package" type.
The P&D will create the HTML file which will contain the CLASS ID. Once the P&D crates the HTML file you can copy the the HTML code and paste it to your HTML page.
Hope this helps.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Dec 1st, 2000, 12:12 AM
#16
Thread Starter
Member
Ok i got this.. thanks. Anyway i have tried and it is successful.. But currently i still encounter missing file (Autmgr32.exe) Pls help.. I encountered this problem when trying to package the ActiveX Document..
-
Dec 1st, 2000, 01:10 AM
#17
Thread Starter
Member
BTW I also need to create a webpage for the control so that other people can see the data.. Pls advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|