473,385 Members | 1,400 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,385 software developers and data experts.

Import and Export ExcelSheet in DataGrid using C#

Hi All,
How we can import & Export Excel sheet using C# for
Web Application?
I will apprecaite for your help.

Regards
Unni
Sep 21 '06 #1
2 2681
sandu
2
you have two possibilities, one is to use a third party component that had reverse engineered the MS Excel format (which is not public) and extract the info you need and the second is to use MS Excel itself to opend the file and extract the data.

MS recomds to use a third party application, because Office 2003 and lower wasn't designed for server-side manipulation and for this you should wait Office 2007 version.

Personally I have done what you are asking here and I can explain if you still remain interested, but I tell you that is problematic and MS is right when it recomends not to use it server side.
Sep 21 '06 #2
you have two possibilities, one is to use a third party component that had reverse engineered the MS Excel format (which is not public) and extract the info you need and the second is to use MS Excel itself to opend the file and extract the data.

MS recomds to use a third party application, because Office 2003 and lower wasn't designed for server-side manipulation and for this you should wait Office 2007 version.

Personally I have done what you are asking here and I can explain if you still remain interested, but I tell you that is problematic and MS is right when it recomends not to use it server side.
I want to copy contents of excel and paste it on any VC++.net
component,
I tried using a data grid but paste does not work.
I tried adding a spreadsheet to my form but I am getting the following error
" file or assembly name axinterop.owc.dll or one of its dependencies was not found" .
I am using visual studio ++.net 2003 , version 7.1.3088, .net framework version
1.1.4322
and excel 2002.
Please help.
Thanks for your time.
Mintara
Nov 22 '06 #3

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

Similar topics

2
by: Bidarkota | last post by:
Hi, I have a DataGrid in which there are some images and Data are displayed and in the webform.asp page i am using some stylesheets. when i export the datagrid all the images are also exported...
3
by: Bidarkota | last post by:
When i export DataGrid to Excel all the HTML contents are also exporting to excel. i am using stylesheets in the ASPX Page and i am getting an alert message that stylesheets are missing. i need to...
0
by: jen78 | last post by:
Hi, I am new to Oracle administration and hope someone can help me out on this as i am struggling to make it work.... I am doing development work using oracle database on my own development...
1
by: InvestorTrade | last post by:
Hi, I've been trying to export/import a table from a DB with Chinese_PRC_CI_AS collation, and I can't seem to get it working at all - the export seems rather simple, it is the import that is not...
5
by: poojapo | last post by:
hi, Refering to thread: Open and create new Excel file with Perl and win32::OLE Can you please give a code to save an excel sheet with a different extension? my $Excel = Win32::OLE-> new...
0
by: RazSam | last post by:
Hi I am developing in c# .net 2,0 web forms and having some problems. Code is attached below. I have written code to export the contents of a Grid View to Excel, this works. The problem occurs...
5
by: sarangbagul1985 | last post by:
can anyone tell me how to import database from excelsheet to mysql using php (i.e. to transfer abc.xls to database)
0
by: trtaan | last post by:
Hi all, This is trtaan. I wanted to export around 300000 records that are present in my MS Access 2003 version table to excelsheet version8. I had written a code to export to multiple sheets in...
2
mageswar005
by: mageswar005 | last post by:
hi, I need one help, How can i Export the Datas from mysql to Excelsheet not csv in php coding.The excelsheet format should be comes under microsoft office excel spreadsheet format.i need all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?

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.