Solved

How to combine programs

Posted on 2013-12-05
6
154 Views
Last Modified: 2013-12-09
I have written numerous Reports for a company. Each report is a standalone Exe. Now they would like to do away with the individual icons and have a unified interface. That is, they would like to open one application and have the all the reports listed in this new application.

Had I known we were going in this direction, I would have created DLLs for each report so they could be referenced in a Unified application. But now I have about a dozen report exe's.

What are some ways that I might use those exe's in a single application?

Thanks,
pat
0
Comment
Question by:mpdillon
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:NARANTHIRAN
ID: 39697970
Hi Mpdillon,
                 You can consolidate all the report's into one exe by creating a new application in VB.net and open each exe by clicking the command button in your new application.
0
 

Author Comment

by:mpdillon
ID: 39698000
Naranthiran,

Thanks. I have a few follow up questions. Are you suggesting using the shell command?

If I do that, how do I handle the deploy? Would I have to first install all the Reports, one at a time so that the new application can call them? It would be preferable to have the single application install/update the individual reports. It is more desirable to install one application rather than a dozen on each computer.
0
 
LVL 5

Expert Comment

by:NARANTHIRAN
ID: 39700166
Mpdillon,
              No not using shell command.
I would suggest you to keep the all the report application in a place and call it in the new  application....

So you need to install only the new application in all the places,  The new application will call the sub applications. What report do you use....
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:mpdillon
ID: 39700896
I created a new VB project. I added the report project (Menu:File>ADD>Existing Project). I placed a button on the new project form. But in that button's CLICK event, I do not know how to start the report program I added.
The report program I added is "StockStatusView". I do not seem to be able to create an instance of the "StockStausView" in the New program's button CLICK event.
Could you please help with a code sample. such as

DIM rpt as ???????????

Dim rpt as New StockStatusView <== Error "Type is not defined"
or
DIM rpt as StockStatusView <== Error "Type is not defined"

StockStatusView's start up FORM is frmDate. I cannot instantiate that form either.

thanks.
0
 
LVL 5

Accepted Solution

by:
NARANTHIRAN earned 500 total points
ID: 39702680
Try adding the path of the  stockstatusview exe in the button click event...
So when you click the button the stockstaus exe will be executed the and you can view the reoprts...
0
 

Author Closing Comment

by:mpdillon
ID: 39705869
The concept is correct but the code was never offered.
I am using ProcessStart. But I do not know how to make this work with a ClickOnce application. ProcessStart requires a full path for anything not in the System32 folder. ClickOnce applications are installed under an obfuscated folder under the user. I do not know how to make this work for all users on all workstations.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now