Solved

run exe file which is installed on the client machine from the web browser

Posted on 2011-09-17
3
369 Views
Last Modified: 2012-05-12
Hi,

I have a small exe file written in VB.NET which connects to database, gets the last row and send the information to the printer. It is just a small part of a program but it uses special font and also calculates the widths for the printer.

I've developed the same program with PHP. Now almost every functionality of it is same wirh the windows based program. But the printing results of the web browser can't be same as I get with the exe file. So I want to just send a paramater to the exe file and run it. (with a javascript call or else) Exe file is on the client machine and I will know where it is the located.

Can you suggest me a way to do that.
I read that this is possible using dll or ocx.

I'm not familiar developing browser plugins.
Is there a tutorial or book for that?
Thanks in advance.
0
Comment
Question by:jet-black
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 36554951
ActiveX in IE is the only way to do that.  All other browsers and javascript block access to the local machine.  Here's something from Microsoft: http://msdn.microsoft.com/en-us/library/aa751970%28v=vs.85%29.aspx 
0
 
LVL 7

Assisted Solution

by:boon86
boon86 earned 250 total points
ID: 36558201
here is other way to run exe files it using vbscript:

http://www.tek-tips.com/viewthread.cfm?qid=979664&page=1
0
 
LVL 12

Author Closing Comment

by:jet-black
ID: 36582299
I decided to create a webservice instead of that. Thanks for your answers.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question