473,396 Members | 2,102 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,396 software developers and data experts.

C# datagrid and ms excel spreadsheet

I am developing an application for the end users in my department using C#.net and MS SQL 2000 server. I am able to retrive data from the server into the datagrid and I want to export that data to the MS Excel spreadsheet. How do I go about this?

Thanks a lot
Feb 25 '07 #1
2 1239
pbh
3
I don't know how to do this is a simple way using MS .NET controls, but ...

For database access (read/update), beautiful layout (compared to datagrid) and SaveAs I'm always using the DataWindow control from the company Sybase - doing it all in the simplest way.

Sorry for not being of more help - I just feel every .NET developer should know the strength of the DataWindow control.

Regards
pbh
Feb 25 '07 #2
kenobewan
4,871 Expert 4TB
Here is an article that may help:
Creating Excel Sheets using ODBC
Feb 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mr Marsh | last post by:
Hello, I'll try and provide as much information as I can about the problem/challenge I'm facing. I have found similar postings to my enquiry but they don't really hit the nail on the head. I am...
1
by: Job Lot | last post by:
I have to create a loan (Line of Credit) tracker application, where users can analyse their loan over a term. They can make changes to monthly entries to see how long it would take them to pay of the...
2
by: | last post by:
I have an app with 2 datagrids that are displayed in a page_load event. I use the following code to render it to an Excel workbook. sFile = sFile.Replace("/", "-") ClearControls(DataGrid1) ...
0
by: LouV | last post by:
The code below exports a datagrid from a dataset stored in a session variable without a hitch. It prompts the user if they would like to open or save the exported spreadsheet. But when the user...
1
by: NancyA | last post by:
I am using the following code to write data from a datagrid to an Excel file: Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) dg.RenderControl(hw)...
2
by: TM | last post by:
I have an Excel sheet where I setup my needed formatting, page settings, ect, and would like to take my data from a datagrid and paste it into the excel file and print the excel file. Any idea...
5
by: Dave | last post by:
In a VB.NET application, I have a datagrid that I export to an Excel spreadsheet like this: ' Set the content type to Excel Response.ContentType = "application/vnd.ms-excel" Dim tw As New...
0
by: Leonard | last post by:
I am trying to open an excel spreadsheet that is loaded from a datagrid. I have managed to do this. But, my original .aspx page no longer works. I will try to explain. I have an .aspx page -...
6
by: Coleen | last post by:
Hi All :-) I'm using .Net Framework 1.1, VB and need to be able to download the data from a datagrid into an Excel 2000 spreadsheet for our accounting users. Can anyone please point me to a good...
7
by: Katit | last post by:
Folks, I'm starting winforms project and I need grid control that will give me control I want. I was using FarPoint spread in VB6 to get similar results. I need: 1. Grid that works in...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.