three lines of code to check MS Excel is installed on PC
RegistryKey key = Registry.ClassesRoot;
RegistryKey excelKey = key.OpenSubKey("Excel.Application");
bool excelInstalled = excelKey == null ? false : true;
i forgot to say that you have to add Microsoft.Win32 namespace
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.
Hi every one .
i need code for how i set the connection i.e when i execute the project .exe it show me a form in which there is Database ...
I facing problem to change color of DGV Row w.e.o Quantity of Remaining days. I tried it but i got error. PLease, check my code.
public void RowsColor() ...
I am trying get c# to select multiple nodes in XML. I'm not sure how to do this here is the xml code followed by c#:
<PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> ...