Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: Boxing when calling a member fn on a struct ? Pin
peterchen21-Apr-07 2:48
peterchen21-Apr-07 2:48 
AnswerRe: Boxing when calling a member fn on a struct ? Pin
Jaiprakash M Bankolli21-Apr-07 4:30
Jaiprakash M Bankolli21-Apr-07 4:30 
AnswerRe: Boxing when calling a member fn on a struct ? Pin
S. Senthil Kumar22-Apr-07 7:37
S. Senthil Kumar22-Apr-07 7:37 
Questionhelp in assembly Pin
Shuaib wasif khan20-Apr-07 23:36
Shuaib wasif khan20-Apr-07 23:36 
AnswerRe: help in assembly Pin
Christian Graus21-Apr-07 0:45
protectorChristian Graus21-Apr-07 0:45 
AnswerRe: help in assembly Pin
peterchen21-Apr-07 0:55
peterchen21-Apr-07 0:55 
QuestionImporting Data from Excel sheet to .net application. Pin
tirumal123120-Apr-07 23:19
tirumal123120-Apr-07 23:19 
AnswerRe: Importing Data from Excel sheet to .net application. Pin
ParimalaRadjaram20-Apr-07 23:42
ParimalaRadjaram20-Apr-07 23:42 
This is pretty easy.
1. Make an oledb connection as:
OleDbConnection ExcelConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ExcelFileName+";Extended Properties=\"Excel 8.0;HDR=NO;IMEX=1;\"");

2.Set the command. OleDbCommand ExcelCommand = new OleDbCommand();
3.ExcelCommand.Connection = ExcelConnection;
4.OleDbDataAdapter ExcelAdapter = new OleDbDataAdapter(ExcelCommand);

ExcelConnection.Open();
System.Data.DataSet ExcelDataSet = new System.Data.DataSet();
ExcelCommand.CommandText = @"SELECT * FROM [SHEET1$]";
ExcelAdapter.Fill(ExcelDataSet);
ExcelConnection.Close();

The ExcelDataSet can be looped thro' and data can be saved to the database.

Hope this helps!

Parimala

AnswerRe: Importing Data from Excel sheet to .net application. Pin
sthotakura20-Apr-07 23:44
sthotakura20-Apr-07 23:44 
Questiongeting image from http Pin
Seishin#20-Apr-07 22:36
Seishin#20-Apr-07 22:36 
AnswerRe: geting image from http Pin
Stefan Troschuetz20-Apr-07 23:23
Stefan Troschuetz20-Apr-07 23:23 
GeneralRe: geting image from http Pin
Seishin#20-Apr-07 23:53
Seishin#20-Apr-07 23:53 
AnswerRe: geting image from http Pin
Sascha Andres22-Apr-07 2:59
Sascha Andres22-Apr-07 2:59 
QuestionHeeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©20-Apr-07 22:01
Muammar©20-Apr-07 22:01 
AnswerRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus20-Apr-07 23:18
protectorChristian Graus20-Apr-07 23:18 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©20-Apr-07 23:27
Muammar©20-Apr-07 23:27 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 0:41
protectorChristian Graus21-Apr-07 0:41 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 0:43
protectorChristian Graus21-Apr-07 0:43 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©21-Apr-07 1:11
Muammar©21-Apr-07 1:11 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 1:23
protectorChristian Graus21-Apr-07 1:23 
QuestionSHOW EVERYONE HOW TO MAKE AN UNINSTALL FILE Pin
phantanagu20-Apr-07 21:56
phantanagu20-Apr-07 21:56 
Questionhow to publish an assembly Pin
Shuaib wasif khan20-Apr-07 21:15
Shuaib wasif khan20-Apr-07 21:15 
AnswerRe: how to publish an assembly Pin
sthotakura20-Apr-07 22:25
sthotakura20-Apr-07 22:25 
GeneralRe: how to publish an assembly Pin
Shuaib wasif khan20-Apr-07 23:14
Shuaib wasif khan20-Apr-07 23:14 
QuestionRe: how to publish an assembly Pin
sthotakura20-Apr-07 23:27
sthotakura20-Apr-07 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.