Click here to Skip to main content
15,928,109 members
Home / Discussions / C#
   

C#

 
GeneralReading Excel Data in C# Pin
Member 445055118-Jun-04 2:06
Member 445055118-Jun-04 2:06 
GeneralRe: Reading Excel Data in C# Pin
Dave Kreskowiak18-Jun-04 3:58
mveDave Kreskowiak18-Jun-04 3:58 
There is no such namespace native to the BCL. You have to set a reference to the Primary Interop Assemblies for Office (XP and 2003), or the Microsoft Excel Object Library (2000 and below), to use Excel in your app.

There is an article demonstrating this here[^] on CodeProject. It's not done is ASP.NET, but it gets the point acrossed.

Warning, using Excel in a ASP server project like this will consume A LOT of resources, is not very fast, and is NOT recommended because Excel will be launched on a PER PAGE REQUEST basis. So keep your use of Excel to the absolute minimum.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Reading Excel Data in C# Pin
Heath Stewart18-Jun-04 4:01
protectorHeath Stewart18-Jun-04 4:01 
GeneralOwn Error Message Pin
visitsaadi18-Jun-04 1:41
visitsaadi18-Jun-04 1:41 
GeneralRe: Own Error Message Pin
Stefan Troschuetz18-Jun-04 1:53
Stefan Troschuetz18-Jun-04 1:53 
GeneralRe: Own Error Message Pin
Dave Kreskowiak18-Jun-04 3:49
mveDave Kreskowiak18-Jun-04 3:49 
Questionwhere are you Michael W. McKechney? Pin
DawnYoshimura18-Jun-04 1:11
DawnYoshimura18-Jun-04 1:11 
AnswerRe: where are you Michael W. McKechney? Pin
Michael P Butler18-Jun-04 5:00
Michael P Butler18-Jun-04 5:00 
GeneralCreating Typesafe Collections Pin
matthias s.18-Jun-04 0:53
matthias s.18-Jun-04 0:53 
GeneralRe: Creating Typesafe Collections Pin
Heath Stewart18-Jun-04 3:55
protectorHeath Stewart18-Jun-04 3:55 
GeneralRe: Creating Typesafe Collections Pin
gokselm18-Jun-04 6:32
gokselm18-Jun-04 6:32 
GeneralRe: Creating Typesafe Collections Pin
Werdna18-Jun-04 10:36
Werdna18-Jun-04 10:36 
GeneralIHTMLDocument2 to UCOMIPersistFile Conversion Pin
lags200517-Jun-04 21:13
lags200517-Jun-04 21:13 
GeneralRe: IHTMLDocument2 to UCOMIPersistFile Conversion Pin
Heath Stewart18-Jun-04 3:51
protectorHeath Stewart18-Jun-04 3:51 
Generalproblem with CSharpCodeProvider Pin
CWIZO17-Jun-04 20:40
CWIZO17-Jun-04 20:40 
GeneralRe: problem with CSharpCodeProvider Pin
CWIZO18-Jun-04 2:39
CWIZO18-Jun-04 2:39 
GeneralButton styles in C#(3D effect) Pin
Freemasons17-Jun-04 20:39
Freemasons17-Jun-04 20:39 
GeneralRe: Button styles in C#(3D effect) Pin
Dave Kreskowiak18-Jun-04 3:41
mveDave Kreskowiak18-Jun-04 3:41 
GeneralRe: Button styles in C#(3D effect) Pin
Freemasons18-Jun-04 20:29
Freemasons18-Jun-04 20:29 
GeneralRe: Button styles in C#(3D effect) Pin
Dave Kreskowiak19-Jun-04 6:13
mveDave Kreskowiak19-Jun-04 6:13 
QuestionC# or JavaME? Which one is better for pocket PC game development? Pin
Link260017-Jun-04 19:05
Link260017-Jun-04 19:05 
AnswerRe: C# or JavaME? Which one is better for pocket PC game development? Pin
fayth17-Jun-04 19:37
fayth17-Jun-04 19:37 
AnswerRe: C# or JavaME? Which one is better for pocket PC game development? Pin
eggie517-Jun-04 23:02
eggie517-Jun-04 23:02 
GeneralMarshalling Return type as LPArray from C# Pin
rana7417-Jun-04 15:45
rana7417-Jun-04 15:45 
GeneralRe: Marshalling Return type as LPArray from C# Pin
Heath Stewart17-Jun-04 17:37
protectorHeath Stewart17-Jun-04 17:37 

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.