Excel c# in computers Without visual basic [duplicate] - c#

This question already has answers here:
How to use Microsoft.Office.Interop.Excel on a machine without installed MS Office?
(4 answers)
Closed 6 years ago.
i made a project in c# that use excel, in my computer and other computers with visual basic the project works but in other computer when i Click the buttom Who start Work with excel i get exeption.
Am i need to install some driver or something? Tnx

In Client system must have MS Office installed.

Related

How to run my c# console application on someone else's computer [duplicate]

This question already has an answer here:
When do i need to download the .Net core Runtime?
(1 answer)
Closed 2 years ago.
So a really basic question:
I wrote a c# console app. Not completly basic. There several classes outside the Programm.cs.
Now I wanted to show it to some friends so I send them zipped folder and and told them to go into \bin\Debug\netcoreapp3.1 and open the .exe file.
This works for me, but not for 2 of my friends who tried it.
A new windows opens and closes right away.
They seem to have the .Net framework installed.
Is there a way to open it without having install visual studio?
Thanks
Solved:
The issue was that .Net Core Desktop Runtime wasn't installed
Thanks everyone
You should publish your project. You will find the option to publish based on your visual studio.
Once your code is published, open \bin\release\netcoreapp3.1\publish..
And share this complete published folder

How to install Windows.Security.Credentials; C# .NET VS 2017 [duplicate]

This question already has answers here:
How to access the stored credentials (PasswordVault?) on Win7 and Win8?
(3 answers)
Closed 5 years ago.
how do I install Windows.Security.Credentials into VS 2017? I've looked everywhere and i can't find a thing. I cant add it through 'add reference'.
Thanks for any help.
Windows.Security.Credentials class avilible only in WinRT based projects type. For example in WindowsRuntimeComponent. You can't access to it from WinForms or Console project.

Start an exe. via Windows Service [duplicate]

This question already has answers here:
How can I run an EXE program from a Windows Service using C#?
(9 answers)
Closed 5 years ago.
I'm currently working on a project to automatize my backup to run only under certain circumstances. Therefor I'm writing a Windows Service in C# using Visual Studios 2015. I already got my requirements set and now I can't get my Service to run sdclt.exe (the Microsoft Default Backup). I already searched for a solution but i only found people saying that Windows Services can't start .exe anymore. Does anyone here have an idea how it might still work?
Thank You
you can create BatchFile that Run sdclt.exe or use System.Thredin.Process to Run that exe. use verbs if require to run with administrator rights.

Is it possible to run a python file from within Visual Studio? [duplicate]

This question already has answers here:
How do I run a Python script from C#?
(9 answers)
Closed 7 years ago.
I am completely new to Visual Studio and C#, so I apologize in advance if this sounds like a dumb question. I am trying to develop a Windows Forms Application such that when I click a button, a Python script is run, performing data analysis on some files, with the eventual goal of displaying that data as a graph on the Windows Forms Application after the button is clicked.
My question is: how do I get the python script to run when the button is clicked from the Windows Forms Application?
Yes, it is possible.
You can create a process that runs python shell.
Pyton Tools for Visual Studio will help with debugging python from within VS
https://pytools.codeplex.com/
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1
Yes, it is possible there is Microsoft approved extension for VS to yse Python.
You can downloaded it from here:
https://visualstudiogallery.msdn.microsoft.com/9ea113de-a009-46cd-99f5-65ef0595f937
For more details and how to look at this video
http://www.youtube.com/watch?v=JNNAOypc6Ek&hd=1

Find Microsoft Windows Installer 3.1 or later [duplicate]

This question already has answers here:
How do I check if Windows Installer 3.1 or higher is installed?
(5 answers)
Closed 9 years ago.
How to find using C# Microsoft Windows Installer 3.1 or later is installed in machine?Can anyone help me how to do this using C#.
Thanks
You can check to see if this line returns a version number higher than "3.0.1" :
return System.Diagnostics.FileVersionInfo.GetVersionInfo(#"C:\Windows\System32\msi.dll").ProductVersion;

Categories