Solved

How to combine programs

Posted on 2013-12-05
6
158 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net checkbox 7 47
EF5: Question about Metadata Artifact Processing 4 15
VB.Net - Get ColumnNames of SQL Table 4 12
.NET 2008 VB and C# 6 28
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

810 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