I am developing an Excel Report in C#. I have the input and the configuration settings in the Excel file and I generate the output report in Excel as well.
So, there will be 3 Excel Files open in the program. So, this is how I do it through single Excel
object :
Excel._Workbook inputWb = oXL.Workbooks.Open(ExcelFileName, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval);
Excel._Worksheet inSheet = inputWb.Sheets["Input"];
Excel._Workbook configWb = oXL.Workbooks.Open(ConfigFile, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval, misval);
Excel._Worksheet configSheet = configWb.Sheets[1];
Excel._Workbook outputWb = (Excel._Workbook)(oXL.Workbooks.Add(misval));
Excel._Worksheet outSheet = outputWb.Sheets[1];
Now, I would like to make just the output Excel file Visible. Any idea how do it ?
Thanks
You can hide individual worksheets, but you can also hide a workbook. In VBA:
or
Change this setting to
True
before saving or closing the workbook (if appropriate).oXL.Visible = true;
should show the Excel file you are dealing with.