Click here to Skip to main content
15,889,767 members
Home / Discussions / C#
   

C#

 
QuestionInvalidate and redraw Pin
AlexB473-Jan-10 21:02
AlexB473-Jan-10 21:02 
AnswerRe: Invalidate and redraw Pin
Jimmanuel4-Jan-10 0:54
Jimmanuel4-Jan-10 0:54 
GeneralRe: Invalidate and redraw Pin
AlexB474-Jan-10 1:23
AlexB474-Jan-10 1:23 
GeneralRe: Invalidate and redraw Pin
Jimmanuel4-Jan-10 2:59
Jimmanuel4-Jan-10 2:59 
AnswerRe: Invalidate and redraw Pin
Luc Pattyn4-Jan-10 2:44
sitebuilderLuc Pattyn4-Jan-10 2:44 
GeneralRe: Invalidate and redraw Pin
AlexB474-Jan-10 3:46
AlexB474-Jan-10 3:46 
GeneralRe: Invalidate and redraw Pin
Luc Pattyn4-Jan-10 4:00
sitebuilderLuc Pattyn4-Jan-10 4:00 
QuestionReading excel sheet issue Pin
Priya Prk3-Jan-10 20:49
Priya Prk3-Jan-10 20:49 
Dear All,

Im trying to read data from excel through Oledb.
OleDbConnection connCura = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;
                        Data Source=" + path + ";Extended Properties=Excel 8.0");
                    OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", conn);


The problem is that if the 'Sheet1' in the excel file had a another name instead of 'Sheet1', then im getting this error:

System.Data.OleDb.OleDbException: External table is not in the expected format. at ConfigQeKMS.ReadImportFile.ReadTheFile(String path, String extension, String scheiTeken) in C:\Documents and Settings\KaneshkaB\Desktop\30 DEC 2009\QeKms\ConfigQeKMS\ReadImportFile.cs:line 61

Can anyone tell me how to fix this?

Thanks.
AnswerRe: Reading excel sheet issue Pin
Aman Bhullar3-Jan-10 21:03
Aman Bhullar3-Jan-10 21:03 
GeneralRe: Reading excel sheet issue Pin
Priya Prk3-Jan-10 23:40
Priya Prk3-Jan-10 23:40 
QuestionDelegate Pin
Isaac Gordon3-Jan-10 19:59
Isaac Gordon3-Jan-10 19:59 
AnswerRe: Delegate Pin
Abhinav S3-Jan-10 20:36
Abhinav S3-Jan-10 20:36 
QuestionC# textbox not working in vc++ Pin
Anu_Bala3-Jan-10 19:23
Anu_Bala3-Jan-10 19:23 
AnswerRe: C# textbox not working in vc++ Pin
Richard MacCutchan3-Jan-10 22:20
mveRichard MacCutchan3-Jan-10 22:20 
AnswerRe: C# textbox not working in vc++ Pin
Priya Prk3-Jan-10 23:48
Priya Prk3-Jan-10 23:48 
QuestionGraphs in Report Sharp-Shooter Pin
nagendrathecoder3-Jan-10 19:16
nagendrathecoder3-Jan-10 19:16 
AnswerRe: Graphs in Report Sharp-Shooter Pin
Ashfield3-Jan-10 21:34
Ashfield3-Jan-10 21:34 
QuestionGetModuleHandle always returning zero. Pin
tapas19793-Jan-10 19:07
tapas19793-Jan-10 19:07 
AnswerRe: GetModuleHandle always returning zero. Pin
Luc Pattyn4-Jan-10 2:49
sitebuilderLuc Pattyn4-Jan-10 2:49 
AnswerRe: GetModuleHandle always returning zero. Pin
Member 42162068-Feb-10 10:12
Member 42162068-Feb-10 10:12 
Questionreporting issue Pin
mjawadkhatri3-Jan-10 18:32
mjawadkhatri3-Jan-10 18:32 
AnswerRe: reporting issue Pin
Priya Prk3-Jan-10 23:41
Priya Prk3-Jan-10 23:41 
QuestionGet tables and columns from existing sql server backup file Pin
VENKAT SEERLA3-Jan-10 17:17
VENKAT SEERLA3-Jan-10 17:17 
AnswerRe: Get tables and columns from existing sql server backup file Pin
Priya Prk3-Jan-10 23:46
Priya Prk3-Jan-10 23:46 
GeneralRe: Get tables and columns from existing sql server backup file Pin
VENKAT SEERLA5-Jan-10 20:20
VENKAT SEERLA5-Jan-10 20:20 

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.