I’ve written a small piece of code which opens up an Excel document on a specific worksheet. This has been done in C#/ASP.NET using the Excel COM object.
I have now been tasked with extending this application to only display certain data in the Excel worksheet, depending on parameters which have been programmatically specified before interacting with the Excel COM object.
Unfortunately I do not have much information to work with, aside from the fact that the application is to make use of .NET technologies.
Could anyone mention some methods that such a program would be able to interact with an Excel worksheet, and display only certain data which satisfies the respective parameters?
First off you want to use the Microsoft.Office.Interop.Excel assembly to open the Excel work book and interact with it.
Add a COM reference to the Microsoft Excel XX.X Object Library
Here is something to start you off:
What I have found very useful is googling
excel c# ExcelFeaturefor exampleexcel c# conditional formatting