Avatar of mpdillon
mpdillon
 asked on

How to combine programs

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
Visual Basic.NET

Avatar of undefined
Last Comment
mpdillon

8/22/2022 - Mon
Naranthiran D

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.
mpdillon

ASKER
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.
Naranthiran D

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....
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
mpdillon

ASKER
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.
ASKER CERTIFIED SOLUTION
Naranthiran D

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mpdillon

ASKER
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.