473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to greate Excel project in C# from .net?

Hi All,

I want to new a Excel project from .NET using c#.
I go to File/New/Project/ there is no office projects to
choose. I want to know why?

I installed Visual studio .Net 2003 and office 2003(.Net
programmablity is chosen). Any thing else I should install
in order to have a Excel project in c# from .net?

One more question: since I cannot create a excel project
in C# I create a C# project to do my work. How my Excel
template call those functions they are in my C# project?

Please help me.
Nov 15 '05 #1
5 1771
You need the VSTO (Visual Studio Tools for Office). You can get more
information from http://msdn.microsoft.com/office/understanding/vsto/.

If you want to automate Excel, then you don't need those tools, but it
sounds like you're looking for the VSTO stuff.

<Li**@discussions.microsoft.com> wrote in message
news:e9****************************@phx.gbl...
Hi All,

I want to new a Excel project from .NET using c#.
I go to File/New/Project/ there is no office projects to
choose. I want to know why?

I installed Visual studio .Net 2003 and office 2003(.Net
programmablity is chosen). Any thing else I should install
in order to have a Excel project in c# from .net?

One more question: since I cannot create a excel project
in C# I create a C# project to do my work. How my Excel
template call those functions they are in my C# project?

Please help me.

Nov 15 '05 #2
Thanks Scott,
You are right on both I don't have VSTO and I want to
automate Excel.

Do you know any thing about my other question? Can my
excel template(it is a xls file) call a C# function?

Lily
-----Original Message-----
You need the VSTO (Visual Studio Tools for Office). You can get moreinformation from http://msdn.microsoft.com/office/understanding/vsto/.
If you want to automate Excel, then you don't need those tools, but itsounds like you're looking for the VSTO stuff.

<Li**@discussions.microsoft.com> wrote in message
news:e9****************************@phx.gbl...
Hi All,

I want to new a Excel project from .NET using c#.
I go to File/New/Project/ there is no office projects to
choose. I want to know why?

I installed Visual studio .Net 2003 and office 2003(.Net
programmablity is chosen). Any thing else I should install in order to have a Excel project in c# from .net?

One more question: since I cannot create a excel project
in C# I create a C# project to do my work. How my Excel
template call those functions they are in my C# project?

Please help me.

.

Nov 15 '05 #3
<Li**@discussions.microsoft.com> wrote:
Thanks Scott,
You are right on both I don't have VSTO and I want to
automate Excel.

Do you know any thing about my other question? Can my
excel template(it is a xls file) call a C# function?


Never tried any of this, but google yurned up several links, this one
might help
http://msdn.microsoft.com/library/de...sforexcelc.asp
Nov 15 '05 #4
Adie wrote:
<Li**@discussions.microsoft.com> wrote:
Thanks Scott,
You are right on both I don't have VSTO and I want to
automate Excel.

Do you know any thing about my other question? Can my
excel template(it is a xls file) call a C# function?


Never tried any of this, but google yurned up several links, this one
might help
http://msdn.microsoft.com/library/de...sforexcelc.asp


and another
http://www.c-sharpcorner.com/Code/20...fromCSharp.asp

:-)
Nov 15 '05 #5
I've only done automation with C# and haven't looked at the VSTO except a
brief encounter just to check it out. From what I understand, your code is
actually still in an assembly which gets loaded by the Excel sheet. But I
believe the short answer is yes, with Office 2003. Take a look at the
following URL and it should give you enough information.

http://msdn.microsoft.com/library/de...chitecture.asp

Scroll about half way down to the 'How it works' topic.

<Li**@discussions.microsoft.com> wrote in message
news:f2****************************@phx.gbl...
Thanks Scott,
You are right on both I don't have VSTO and I want to
automate Excel.

Do you know any thing about my other question? Can my
excel template(it is a xls file) call a C# function?

Lily
-----Original Message-----
You need the VSTO (Visual Studio Tools for Office). You

can get more
information from

http://msdn.microsoft.com/office/understanding/vsto/.

If you want to automate Excel, then you don't need those

tools, but it
sounds like you're looking for the VSTO stuff.

<Li**@discussions.microsoft.com> wrote in message
news:e9****************************@phx.gbl...
Hi All,

I want to new a Excel project from .NET using c#.
I go to File/New/Project/ there is no office projects to
choose. I want to know why?

I installed Visual studio .Net 2003 and office 2003(.Net
programmablity is chosen). Any thing else I should install in order to have a Excel project in c# from .net?

One more question: since I cannot create a excel project
in C# I create a C# project to do my work. How my Excel
template call those functions they are in my C# project?

Please help me.

.

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
3
by: Russell Smith | last post by:
I am creating an Excel add-in. Please note project type is Shared Add-in vice Excel Workbook. In the OnStartupComplete event handler I am adding a new menu item. I start by getting a reference...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
5
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt...
1
by: Dartish | last post by:
Hi all, Thanks in advance for the help I have a DLL that which has several functions that I can call in Excel. I am thinking of how to call these functions in a .net project (authored in C#)....
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
2
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.