Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:21:45+00:00 2026-06-17T12:21:45+00:00

As shown in title, lets say that I have two projects in one solution.

  • 0

As shown in title, lets say that I have two projects in one solution. I have three, the last one is just for an example. One project is ExcelWorkbook called (EWB)

enter image description here

and another one is WindowsForm called (Core). I would like to show/open/start this EWB from Core. I’ve added references to the first one:

enter image description here

and I can see sheets of that specific workbook. It’s not so easy as it is like when you’re showing form from another project. Just for note, EWB.Sheet1 does not contain a constructor that takes 0 arguments, its constructor has two argument, …

Here are these arguments:

  • Microsoft.Office.Tools.Excel.Factory factory
  • IServiceProvider serviceProvider

For this project its says as following:

enter image description here

I would like to open that workbook on button click event but I don’t know how to:

  • start it
  • show it
  • open it
  • or …

Any idea how this could be done? Any help will be appreciated!

This how I open form from another project, and this is the way I would like to open that EWB.

using WindowsFormsApplication1;

private void CoreBtn_Click(object sender, EventArgs e)
        {
            Form1 newForm = new Form1();
            newForm.Show();
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:21:46+00:00Added an answer on June 17, 2026 at 12:21 pm

    Add a reference to Microsoft.Office.Interop.Excel and using Excel = Microsoft.Office.Interop.Excel;

    Here is some simple code to get you started:

    Excel.Application xlApp = new Excel.Application();  // create new Excel application
    xlApp.Visible = true;                               // application becomes visible
    xlApp.Workbooks.Open(@"C:\workbook.xlsx");          // open the workbook from file path
    
    xlApp.Quit();                                       // close the application when you are done
    

    And for more information the Excel Object Model look here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say that I have a MySQL table that looks like this : BookTitle
Lets say I have a model, Article that has a large amount of columns
Well, like the title shown, what's the difference between the two class instance variables
I do have a table data as shown below: <td> <label for=title>Title : </label>
Basicily i have a index.html shown below.. <html> <head> <title>UI Test: Main Menu</title> <script
Essentially I have this <p>hello</p> <p>So I wanted just to say hi</p> <p>I hope
ok lets say i have this collection in my tv database season : 1,
OK, lets just do a case in point, but before that, a simple key.
lets say I have a process with the ID 1234. This process is running
This is for a library management system. I have two tables, one is Books

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.