Click here to Skip to main content
15,881,881 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to create table with uneven columns Pin
Ennis Ray Lynch, Jr.3-Mar-10 10:11
Ennis Ray Lynch, Jr.3-Mar-10 10:11 
AnswerRe: How to create table with uneven columns Pin
T M Gray3-Mar-10 10:49
T M Gray3-Mar-10 10:49 
GeneralRe: How to create table with uneven columns [modified] Pin
josephu3-Mar-10 11:29
josephu3-Mar-10 11:29 
AnswerRe: How to create table with uneven columns [modified] Solved! Pin
chengclq3-Mar-10 19:16
chengclq3-Mar-10 19:16 
QuestionMvc Handling POST Requests Pin
Jammer3-Mar-10 6:05
Jammer3-Mar-10 6:05 
AnswerRe: Mvc Handling POST Requests Pin
Not Active3-Mar-10 7:09
mentorNot Active3-Mar-10 7:09 
GeneralRe: Mvc Handling POST Requests Pin
Jammer3-Mar-10 10:57
Jammer3-Mar-10 10:57 
QuestionExcel Import Problem Pin
adkalavadia3-Mar-10 3:55
adkalavadia3-Mar-10 3:55 
Hi,

See my code for importing data from excel sheet.I have problem with importing data which contains in one column all record in digit except one is in charecters. The row containing charecters in that perticular column is not imported.

<br />
  string excelConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + pathName + @"\" + fileName + ";Extended Properties=\"Excel 12.0 Xml;HDR=YES;IMEX=1;\"";<br />
            OleDbConnection ExcelConnection = new OleDbConnection(excelConnectionString);<br />
            OleDbCommand ExcelCommand = new OleDbCommand();<br />
            ExcelCommand.Connection = ExcelConnection;<br />
            OleDbDataAdapter ExcelAdapter = new OleDbDataAdapter(ExcelCommand);<br />
<br />
            ExcelConnection.Open();<br />
<br />
            DataTable ExcelSheets = ExcelConnection.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables,null);<br />
<br />
<br />
            string SpreadSheetName = "[" + ExcelSheets.Rows[workSheetNumber]["TABLE_NAME"].ToString() + "]";<br />
<br />
            ExcelCommand.CommandText = @"SELECT * FROM " + SpreadSheetName;<br />
            ExcelAdapter.Fill(ExcelDataSet);<br />


In my "Password" colomn all record contains digits but one record contains charecters.

At a time of debuging, i have found record contains NULL value. I have done lots of googling for this problem but still face this problem.

My registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel
key ImportMixedTypes=Text.
!- F - R - I - E - N - D - S -!

AnswerRe: Excel Import Problem Pin
T M Gray3-Mar-10 6:40
T M Gray3-Mar-10 6:40 
GeneralRe: Excel Import Problem Pin
adkalavadia3-Mar-10 17:37
adkalavadia3-Mar-10 17:37 
GeneralRe: Excel Import Problem Pin
T M Gray4-Mar-10 4:58
T M Gray4-Mar-10 4:58 
Questionftp - upload image files Pin
Paulraj G3-Mar-10 1:12
Paulraj G3-Mar-10 1:12 
AnswerRe: ftp - upload image files Pin
The Man from U.N.C.L.E.3-Mar-10 1:36
The Man from U.N.C.L.E.3-Mar-10 1:36 
AnswerRe: ftp - upload image files Pin
April Fans3-Mar-10 17:43
April Fans3-Mar-10 17:43 
GeneralRe: ftp - upload image files Pin
Paulraj G3-Mar-10 18:10
Paulraj G3-Mar-10 18:10 
QuestionData synchronization Pin
mukesh.mr032-Mar-10 23:00
mukesh.mr032-Mar-10 23:00 
AnswerRe: Data synchronization Pin
R. Giskard Reventlov2-Mar-10 23:41
R. Giskard Reventlov2-Mar-10 23:41 
GeneralRe: Data synchronization Pin
mukesh.mr032-Mar-10 23:49
mukesh.mr032-Mar-10 23:49 
GeneralRe: Data synchronization Pin
R. Giskard Reventlov2-Mar-10 23:58
R. Giskard Reventlov2-Mar-10 23:58 
GeneralRe: Data synchronization Pin
mukesh.mr033-Mar-10 0:08
mukesh.mr033-Mar-10 0:08 
Questionsession Pin
arkiboys2-Mar-10 21:22
arkiboys2-Mar-10 21:22 
AnswerRe: session Pin
padmanabhan N2-Mar-10 23:30
padmanabhan N2-Mar-10 23:30 
AnswerRe: session Pin
Haroon Sarwar3-Mar-10 0:16
Haroon Sarwar3-Mar-10 0:16 
AnswerRe: session Pin
Brij3-Mar-10 0:19
mentorBrij3-Mar-10 0:19 
AnswerRe: session Pin
tunsten3-Mar-10 0:53
tunsten3-Mar-10 0:53 

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.