473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Automating applications using VB

Hi,

1. We have a requirement to open applications using VB and showing it within a container. Is it possible to automate applications using VB (i.e Acrobat reader, Paint, Word etc)? It can be any application. When a user provides a particular
file name, the file contents should be shown within the container using the corresponding application (example: text file in notepad).
2. Is it possible to open a file using a specific application name as parameter?

Regards,
Sasie
Dec 5 '06 #1
2 1953
willakawill
1,646 1GB
Hi,

1. We have a requirement to open applications using VB and showing it within a container. Is it possible to automate applications using VB (i.e Acrobat reader, Paint, Word etc)? It can be any application. When a user provides a particular
file name, the file contents should be shown within the container using the corresponding application (example: text file in notepad).
2. Is it possible to open a file using a specific application name as parameter?

Regards,
Sasie
Hi Sasie.
Yes this is possible using ole automation and shell(). The simplest way is to use shell and pass the file to be opened as a command line parameter. This would only open it in a normal window though. To open the app in your own container window you will need to use an activex control on a form.
Dec 5 '06 #2
Hi Sasie.
Yes this is possible using ole automation and shell(). The simplest way is to use shell and pass the file to be opened as a command line parameter. This would only open it in a normal window though. To open the app in your own container window you will need to use an activex control on a form.
I am not sure whether all applications support OLE. How to display a application in ActiveX control?. Because the application to be opened will be
known during runtime only.
Dec 5 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Jerry Weinstein | last post by:
Hi, I know about stored procedures and that they can speed up data entry via the SQL 'insert ' statement. However, one drawback to this method is that using the stored procedure still requires...
7
by: xzzy | last post by:
I need to automate a report in a different database (and thank yous to Terry Kreft for pointing me in the right direction). below is the code with the one line that does not work, marked: 'Does...
4
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. ...
0
by: Shamil Salakhetdinov | last post by:
Hi All, Have anybody seen somewhere techniques like the one described here: Automating Windows Applications http://www.thecodeproject.com/com/automatingwindowsapps.asp but for managed...
6
by: Mark Gross | last post by:
I am attempting to programatically drive a Lotus Notes web application from a VB.NET database application (who wants to rekey information in one database into someone else's web page for entry to...
4
by: Supa Hoopsa | last post by:
I am in the process of rewriting an MS Access application (access front end with SQL 2k database) in VB.NET and one of the things I would like to do is link in to the compiled Access ADE so that I...
6
by: Steve Barnett | last post by:
I want users to be able to automate my C# application, just as I can automate other apps such as Word and Excel. Any suggestions as to how I go about this please? I just need a bit of a starter...
3
by: sportygeek3 | last post by:
Hi All, I am looking for a way to automate other applications programatically. Is there any C# library that will allow me to do this? i.e. I want to be able to iterate the menu items on...
3
by: Cliff | last post by:
I'm attempting to automate input to an ASP/AJAX web-page using VBA, however, I've encountered a couple of problems: 1) when selecting from dropdown A manuallly, dropdown B is populated with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.