473,506 Members | 11,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating an Excel File without using Interops

Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep
Aug 9 '07 #1
6 2501
Kuldeep,

It sounds like you want to create excel workbooks for versions of excel
prior to 2007 (even though the version before 2007 could handle XML, it
sounds like you don't want that either). If you are not going to use XML or
interop, then you have to use a third party component to generate the file
(you should be able to google for some). The format of those files is not
in the public domain, so you are more than likely going to have to pay for
it as well.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Kuldeep" <ku****************@hotmail.comwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep


Aug 9 '07 #2

ActiveReports from DataDynamics includes an excel writer which we use
to generate Excel files. We were already using their reporting engine
so there was no cost, so I can't say whether buying ActiveReports just
for the excel writer is worthwhile, but it is an option.

http://www.datadynamics.com

While we're not at all happy with DataDynamics in general, we've found
the excel writer pretty easy to use and the API was straightforward.

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 9 Aug 2007 22:19:20 +0530, "Kuldeep"
<ku****************@hotmail.comwrote:
>Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep
Aug 9 '07 #3
"Kuldeep" <ku****************@hotmail.comwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
There really is only one guaranteed way:
http://www.aspose.com/Products/Aspos...s/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 9 '07 #4


"Kuldeep" wrote:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep
Aug 10 '07 #5
sorry for double post :P
The simplest solution may work for you. If you separate values with commas
and lines with a newline, a file with extension xls will open and display
correctly in Excel.
For example, if you were to write
header1, header2, header3
val1, val2, val3
into a simple text file with extension xls, you would have a usable Excel
file.

"Lucas Heneks" wrote:
>

"Kuldeep" wrote:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep

Aug 10 '07 #6
FYI: With that approach you will lose formatting capabilities that are
otherwise available using other approaches. If that is not a major concern
then it is a suitable solution.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Lucas Heneks" <Lu*********@discussions.microsoft.comwrote in message
news:46**********************************@microsof t.com...
sorry for double post :P
The simplest solution may work for you. If you separate values with
commas
and lines with a newline, a file with extension xls will open and display
correctly in Excel.
For example, if you were to write
header1, header2, header3
val1, val2, val3
into a simple text file with extension xls, you would have a usable Excel
file.

"Lucas Heneks" wrote:
>>

"Kuldeep" wrote:
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

How can we generate an Excel File through C#.NET without using Interops
or
XML ?
Any leads on this would be highly appreciated.

Regards,
Kuldeep

Aug 11 '07 #7

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

Similar topics

5
5207
by: daniele.balducci | last post by:
Hi All, I'm generating XLS files from ASP(.Net) code using the usual code chunks ... Response.ContentType = "application/vnd.ms-excel" Response.AppendHeader("Content-Disposition", "attachment;...
3
20272
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
5
20222
by: Rimantas Žukaitis | last post by:
Hi, we are developing server side report generation application with .NET. The problem is, that we have to present same data in diferent formats (HTML, PDF, WORD, EXCEL). This has to be done...
0
1425
by: Raghavendra | last post by:
hi, we r using forms authetication. problem :- i am using the below code to generate excel report but since we r using forms authetication.. after generating excel report the browser directs...
9
4404
by: hari krishna | last post by:
hi, I want to send the data from dataset information to Excel through ASP.Net. there will be no XL installed on web server. web server is win 2000 server machine. I am using visual basic code in...
0
2221
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I...
9
3227
by: AGP | last post by:
I have a VB6 application that has an OLE container with an embedded Excel chart. Our office updated to Excel 2007 and now although the app works the charts looks like crap. Since the app is fairly...
4
1206
by: ElPresidente | last post by:
To open and read data from Excel files, do I need to purchase VS2008 Standard or Professional? I was looking at the product comparison and it says Standard does not include Microsoft Office...
15
17353
by: pakerly | last post by:
How would i do this, convert a test file to excel? Lets say my text file has fields like this: NUMBER NAME ADDRESS PHONE 11002 Test1 ...
0
7220
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
7105
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
7308
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
7371
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...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.