Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

giving VB program web Interface

HI

Is there any way to make a VB program run through a web page, without the actual user having to install anything new? I'm guessing this isn't possible, but you guys seem to know it all...

thx for your help

p.s. If you come up with a good solution I will raise points to atleast 100.
0
kristofer
Asked:
kristofer
  • 13
  • 13
  • 5
1 Solution
 
CJ_SCommented:
The only way to run your program in an Internet Explorer browser itself is by using either an activex control which you then specify in your HTML code. Another way is to use an Active Document. it has a .vbd extension which Internet Explorer can use.

The first probably does not need any explanation, the second however does.

Create an activex document dll project. Open the UserDocument1 designer and create some nice IDE, including it's underlaying functions. After you are done with that you create the .dll file. Now there is also a .vbd file created. You can open that file in Internet Explorer and see the same as what you created in Visual basic.

regards,
CJ
0
 
kristoferAuthor Commented:
About the second option...
Can I Paste my complete program code into this document dll?? I've got multiple windows, I open word documents etc. What will happen when someone opens it in IE, it will ask a bunch of security questions... right?

BTW What's IDE??

thx
0
 
kristoferAuthor Commented:
Ok, i made a user document...

How do I open the vbd file in IE?? I'm not familiar with ActiveX =(

thx
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
CJ_SCommented:
IDE is what you see when you start a program.
Not all code will work properly, and it depends on the operating system whether certain API calls etc are supported or not. You will need to test it through completely again. Depending on your code it will work or it won't work. I'm sorry, but I cannot give an exact answer to that. When you open it in IE it shouldn't ask any questions though, since it is client side where the document is being loaded, unlike with activex controls which get downloaded from the server, and need permissions.

regards,
CJ
0
 
CJ_SCommented:
Internet Explorer -> File -> Open File
locate the .vbd file and open it in the browser :-/
0
 
Valliappan ANCommented:
CJ_S, will it work when vb is not running on the m/c or vb is not installed?
0
 
CJ_SCommented:
You do need to have the runtime libraries installed of course

regards,
CJ
0
 
Valliappan ANCommented:
Got a mail that RedCCameleon had posted a comment. But where?
0
 
CJ_SCommented:
Got the same message, sometimes an email is sent while there is no reason, just like receiving good answer emails while never even having commented to that question...  EE bug I guess.
0
 
kristoferAuthor Commented:
I tried to open it in IE (4.0) but I get the error msg:

Access to the specified device, path or file is denied.
At first I figured since the file is on a network drive, it's probably protected so u can't execute it. But after using chmod 777, the same thing happened again.

Runtime Libraries? where do I get them, how do I know if I have them, will the users/server have to have them installed??

thx
0
 
CJ_SCommented:
Open it as a file... Active Documents aren't designed to be opened over the internet :-/
0
 
kristoferAuthor Commented:
"This file does not have a program associated with it for performing this action. Create an association..."

Now what?
0
 
CJ_SCommented:
Attach IE to it.

It's working properly for me here :-/
0
 
Valliappan ANCommented:
kristofer,

you need to have vb or vb run-time libraries in the m/c you are trying to execute the vbd file, if I understood it properly.
0
 
kristoferAuthor Commented:
whoops LOL, I didn't realize it was allready working...

At first I had the user document call form1.show, and that results in a download box appearing. I thought that the program hadn't even started.

So eventhough the program works, I can't call new windows...
Any workarounds or am I doomed to reprogram the entire program to one window, not knowing if it's even going to work then??

thx
0
 
Valliappan ANCommented:
You could open the file from IE directly, or associate IE to it.
0
 
CJ_SCommented:
Indeed active documents do not support the formname.show and formname.hide methods, because it is running inside a browser. However, help is on it's way. You will need to create seperate forms , and navigate to them using the GoForward, GoBack and NavigateTo methods

In code:
UserDocument.HyperLink.NavigateTo "othervbdfile.vbd"

Regards,
CJ
0
 
CJ_SCommented:
>> p.s. If you come up with a good solution I will raise points to atleast 100.

I hope that still stands :-)
0
 
Valliappan ANCommented:
CJ_S,

I tried with form1.show, it works actually. but not in the IE window, thats all.
0
 
kristoferAuthor Commented:
>> p.s. If you come up with a good solution I will raise points to atleast 100.

I hope that still stands :-)

You don't have to worry, if I get it working I sure will!

OK, now I've got it working on my own computer (not from1.show tho). The problem is as follows:

I made a program to help Ericsson users. The thing is... now the mgmt. have decided that we are all switching over to windows 2000 and they control the programs we install. I.e. we can no longer install this program on the computers, and that's why I needed a web interface. When I now try to execute the vbd file from a computer that has only Ericssons standard settings, I see a download box flash by for a split second and then nothing...? Could it be that the runtime libraries aren't installed on these computers? Is there a smooth way to fix it?

thx u've been a lot of help so far...
0
 
kristoferAuthor Commented:
no matter what happens you are worth atleast 50 pts...
0
 
CJ_SCommented:
Yes, the runtime libraries are not installed by default on all machines. To fix that the easiest way is to create a small executable and use the Package & Deployment wizard to create an executable. Running that executable will install all necessary runtime libraries on that client machine. Another way is to just copy msvbvm60.dll.

Regards,
CJ
0
 
kristoferAuthor Commented:
BTW, with the GoForward, GoBack and NavigateTo methods, will I be able to have global variables between them all? otherwise it's a waste of time trying...
0
 
kristoferAuthor Commented:
OK, thx. I'm not sure what Ericsson allows however... Are you sure that simply copying the the file will do the trick?? (even from 98 -> 2000 professional?) I will check if I'm allowed to do any of those things in this military state! ;)
0
 
CJ_SCommented:
No, I'm sorry, but with those 3 functions there can be no global variables...unless you write to registry (use the api calls or the plain savesetting and readsetting functions). And yes, on my win2000 it is working correctly, and those files are the only needed files on a client which wants to run a VB application. Since an Active Document is a VB application those are the only needed files.

regards,
CJ

Regards,
CJ
0
 
kristoferAuthor Commented:
Now I've got the dll's installed on the win 2000 computer, but I still get the same result =(.

Any clues???
0
 
kristoferAuthor Commented:
Now I've got the dll's installed on the win 2000 computer, but I still get the same result =(.

Any clues???
0
 
CJ_SCommented:
Weird....can't think of anything :-(. You also registered them?
0
 
kristoferAuthor Commented:
Yeah I registered them, and I can't even get a simple program like hello world to work =(
0
 
CJ_SCommented:
I'm out of ideas :-( it is working for me, tested it earlier today...
0
 
kristoferAuthor Commented:
K, thanks anyway. I'll have a word with the helpdesk around here... they're probably clueless, but worth a shot anyway! If I desperately need more info I'll start another question and give u some more points, but you'll have to settle for 75 since the problem isn't really solved.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 13
  • 13
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now