Click here to Skip to main content
16,008,010 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add a now treenode in the following code? Pin
Malcolm Smart5-Feb-08 1:54
Malcolm Smart5-Feb-08 1:54 
QuestionHow do I draw a lines in a cirle? Pin
east854-Feb-08 22:53
east854-Feb-08 22:53 
GeneralRe: How do I draw a lines in a cirle? Pin
Abhijit Jana5-Feb-08 0:20
professionalAbhijit Jana5-Feb-08 0:20 
GeneralRe: How do I draw a lines in a cirle? Pin
Guffa5-Feb-08 2:44
Guffa5-Feb-08 2:44 
GeneralRe: How do I draw a lines in a cirle? Pin
east855-Feb-08 20:03
east855-Feb-08 20:03 
GeneralRe: How do I draw a lines in a cirle? Pin
Guffa5-Feb-08 20:57
Guffa5-Feb-08 20:57 
QuestionHow to know when a file created is completed? (in FilestreamWatcher) Pin
Sara1234-Feb-08 22:49
Sara1234-Feb-08 22:49 
AnswerRe: How to know when a file created is completed? (in FilestreamWatcher) Pin
Giorgi Dalakishvili4-Feb-08 22:56
mentorGiorgi Dalakishvili4-Feb-08 22:56 
GeneralRe: How to know when a file created is completed? (in FilestreamWatcher) Pin
Sara1234-Feb-08 23:46
Sara1234-Feb-08 23:46 
GeneralRe: How to know when a file created is completed? (in FilestreamWatcher) Pin
Giorgi Dalakishvili5-Feb-08 0:28
mentorGiorgi Dalakishvili5-Feb-08 0:28 
GeneralRe: How to know when a file created is completed? (in FilestreamWatcher) Pin
Sara1235-Feb-08 0:01
Sara1235-Feb-08 0:01 
Generalcrystal report error Pin
Member 7816104-Feb-08 22:47
Member 7816104-Feb-08 22:47 
Question.NET (C#) and Word Application Pin
Emanuil ACHIM4-Feb-08 22:44
Emanuil ACHIM4-Feb-08 22:44 
GeneralRe: .NET (C#) and Word Application Pin
Christian Graus4-Feb-08 22:49
protectorChristian Graus4-Feb-08 22:49 
GeneralRe: .NET (C#) and Word Application Pin
Malcolm Smart5-Feb-08 1:58
Malcolm Smart5-Feb-08 1:58 
Generalmdf and ldf file name from Backup DataBase Pin
Thaer Hamael4-Feb-08 22:41
Thaer Hamael4-Feb-08 22:41 
GeneralRe: mdf and ldf file name from Backup DataBase Pin
Christian Graus4-Feb-08 22:50
protectorChristian Graus4-Feb-08 22:50 
QuestionHow to retrieve mail from pop server and save as outlook format. Pin
Leonardo.ulric4-Feb-08 22:41
Leonardo.ulric4-Feb-08 22:41 
AnswerRe: How to retrieve mail from pop server and save as outlook format. Pin
Christian Graus4-Feb-08 22:51
protectorChristian Graus4-Feb-08 22:51 
GeneralRe: How to retrieve mail from pop server and save as outlook format. Pin
Leonardo.ulric4-Feb-08 22:57
Leonardo.ulric4-Feb-08 22:57 
GeneralStep by step wizard Pin
haolan4-Feb-08 22:35
haolan4-Feb-08 22:35 
GeneralRe: Step by step wizard Pin
Christian Graus4-Feb-08 22:52
protectorChristian Graus4-Feb-08 22:52 
GeneralRe: Step by step wizard Pin
haolan4-Feb-08 22:56
haolan4-Feb-08 22:56 
GeneralRe: Step by step wizard Pin
haolan4-Feb-08 23:26
haolan4-Feb-08 23:26 
Generalexcel references Pin
arkiboys4-Feb-08 22:31
arkiboys4-Feb-08 22:31 
Hi,
I am running the .net 2.0 code below in windows server 2003 R2, standard edition, service pack 2.

string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\Data.xls;Extended Properties=""Excel 8.0;HDR=YES;""";

DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb");

Error is:
Error 4 The type or namespace name 'DbProviderFactory' could not be found (are you missing a using directive or an assembly reference?)

I have tried adding The following dlls but error still remains:
Interop.Excel.dll
Microsoft.Office.Core

What references do I need to add to get this to work?

Thanks

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.