Is it possible to use Visual Express editions to make a class library for Excel UDF functions and use it as an add-in?
I am looking for information from ground.
So far, I tried using VS express *C#) 2008
- to make a class library with my pre-defined functions, but compilation error
[ access denied to write to registry]
I am an administrator and do not understand why.
You can use Excel-DNA with any edition of Visual Studio (in fact any text editor) to create user defined functions for recent versions of Excel.
If you intend to produce native code .xll add-ins, you will need to use the C language library that is not available with the Express edition.
Related
I want to use C# to manage Excel read/write with the following method:
How to: Use COM Interop to Create an Excel Spreadsheet (C# Programming Guide)
Before using COM Interop API , most articles said that I should install Office Developer Tools . so ,is it possible to use Visual studio Express 2017 to fulfill its demands.If not, is there another way to manage excel read/write through C#? thanks!
What is the simplest version of Visual Studio (professional, enterprise, or other) that I could purchase that supports C# or F# development?
It looks like F# is downloadable from Microsoft for no charge and comes in configurations
that would allow .Net and non-.Net development with or without Visual Studio. Am I missing something?
Is the same true for C#? That is is it downloadable without cost?
Thank you.
The simplest single version of Visual Studio which supports both developing in F# and C# is professional.
It's possible to install multiple free versions of the Visual Studio shell to allow you to develop C# and F# locally
C# via Express SKU
F# via Free Tools + Isolated Shell
This won't give you a single IDE though for developing in both languages.
C# is downloadable without cost as either part of the Windows SDK (which provides a commandline compiler csc) or Visual C# Express, which provides an IDE.
F# is available either in commandline form (fsc) or as a Visual Studio plugin, which requires the VS Shell (which is freely downloadable) or a full (non-Express) Visual Studio.
This means that you must purchase at least VS Professional to open both types of projects in the same editor, but you could also use a combination of VS Express and VS Shell for free.
Visual Studio Express Editions allows you to develop in NET languages. For example Microsoft Visual C# 2010 Express and it has no cost.
However it lacks many features. If you need a more powerful IDE, you can use SharpDevelop. It has no cost and allow you to develop in C#, F# and many more. Give it a try. Good luck!
I'm trying to develop an MS Office Addin in C# .Net and I don't have access to Visual Studio. Instead I'm using SharpDevelop as my IDE, (but my question is equally relevant to anyone developing using any other IDE or compiling from the command line...)
I've done a bit of searching for guides on how to develop AddIns, but they all seem to require Visual Studio and follow these steps:
Install the Interop Assemblies
Create a Visual Studio .Net Project (I'm unable to do this bit)
Extend the VS ThisAddIn template
What I've managed to do is to:
Install the Interop Assemblies
Create a C# empty SharpDevelop project
Add a GAC reference to Microsoft.Office.Interop.Outlook
Add a COM reference to Microsoft Office 12.0 Object Library
add the line using Outlook = Microsoft.Office.Interop.Outlook;
and the line using Office = Microsoft.Office.Core;
Look at some example code and realise that they all refer to VS templates and VSTO libraries (Microsoft.Office.Tools) which I don't have.
Where do I go from here? Is there a guide/tutorial I've missed, or can someone provide some pointers?
NetOffice (http://netoffice.codeplex.com or https://osdn.net/projects/netoffice/) is a great set of version-independent interop assemblies for Office. This is all you need to make add-ins using SharpDevelop, and the project has a bunch of tutorials and samples too, including some for Outlook.
If you're making an add-in for Excel using Excel-DNA (which you need to expose user-defined worksheet functions from .NET), NetOffice still gives you a complementary set of libraries for accessing the Excel COM automation interfaces from your Excel-DNA add-in, so they work together well.
For both NetOffice and Excel-DNA, you'll also be able to use the free Visual Studio Express editions (with some small tricks needed to get debugging working). Visual Studio Express does not include VSTO at all. SharpDevelop also has many more features than the Express editions, like built-in refactoring and VB.NET <-> C# translation tools, so there are good reasons to prefer SharpDevelop as your free IDE.
EDIT: I missed the reference to Outlook, my apolgies.
For Outlook, look here. Outlook Redemption is useful.
I'm not a Word Expert, but there are plenty of tutorials on the web.
For Excel I'd suggest you actually look at ExcelDNA
Plenty of SO questions on this topic. See Exposing .net methods as Excel functions? for example as additional advice on where to start and what your options are.
In C# code, we can just right click on the class name and then select refactor and then extract the interface for that class.
I wonder if this could be done on VB. Im using the same IDE VS 2008
This cannot be done in a vanilla Visual Studio 2008 install. There are 3rd party add-ins which support this behavior such as Resharper.
I am writing a plug for Visual Studio 2005/2008. I want gain access the controls in the following picture:alt text http://img145.imageshack.us/img145/2773/82813838.jpg
How do it ?
Intellisense in Visual Studio 2008 also works for javascript source code. You don't need an extra add-in for that but rather just documentation file for your javascript. It will also work for Prototype library but you won't have any documentation nor will it work in chaining multiple functions, because it doesn't know return types.
Anyway, this should be a nice start (since it's for 1.6.0 RC1 version):
Prototype VS2008 Intellisense