You are currently viewing Prevent Excel Application From Opening While Creating Excel File C#

Prevent Excel Application From Opening While Creating Excel File C#

Problem:

Excel Application opens up and shows the work being done to each sheet as its being created.

Desired Solution:

Prevent Excel Application From Opening While Creating Excel File C#

Stop the excel window from popping up while creating excel files

Source code:

xlApp.Visible = true;

Change to:

xlApp.Visible = false;

Resources: https://stackoverflow.com/questions/10992163/prevent-excel-from-opening-while-creating-excel-file-using-interop