Link to home
Start Free TrialLog in
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
Avatar of Naranthiran D
Naranthiran D
Flag of India image

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.
Avatar of mpdillon
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.
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....
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
Avatar of Naranthiran D
Naranthiran D
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.