Click here to Skip to main content
15,902,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: Downloading all files in directory FTP C# Pin
stancrm26-May-09 20:45
stancrm26-May-09 20:45 
Questiondatagridtextbox column text changed event problem Pin
Shuaib wasif khan26-May-09 11:45
Shuaib wasif khan26-May-09 11:45 
AnswerRe: datagridtextbox column text changed event problem Pin
Henry Minute26-May-09 12:19
Henry Minute26-May-09 12:19 
GeneralRe: datagridtextbox column text changed event problem Pin
Shuaib wasif khan26-May-09 12:30
Shuaib wasif khan26-May-09 12:30 
AnswerRe: datagridtextbox column text changed event problem Pin
jaypatel51227-May-09 0:32
jaypatel51227-May-09 0:32 
QuestionNeed suggestion on getting column data from excel without using ADO or Excel Interops Pin
DeepToot26-May-09 10:29
DeepToot26-May-09 10:29 
AnswerRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
Dave Kreskowiak26-May-09 16:21
mveDave Kreskowiak26-May-09 16:21 
GeneralRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
DeepToot27-May-09 8:12
DeepToot27-May-09 8:12 
Thanks Dave for the response.



Dave Kreskowiak wrote:
Since you're shot down the two programmatic methods of doing this, you're left with starting Excel and typing everything in yourself.


Ok well that answered the bulk of my questions - have you ever ran up against the Data of a column being F3, F2 and such and Office thinking its a float and setting its datatype of the column to Decimal (int32 would of been fine..but not decimal)?



Dave Kreskowiak wrote:
That limit is also imposed by most versions of Excel, not just ADO.

Right, actually going back and reading my post you could actually replace ADO with Excel.


Dave Kreskowiak wrote:
Then you need to use quotes around the value in your CSV to force a string type.


I agree this would be a solution, however, the application we are developing is for pivoting of data on a pivotGrid doing aggregates and we cannot assume string if we need it to be an integer.


Dave Kreskowiak wrote:
You don't have any other options. Those are the two programmatic methods you have of talking to Excel.


Well, that is unless you're using Excel 2007 which doesn't have the 255 column limit and now uses a completely different file format allowing you much greater control over creating a workbook, since it's based mostly on an XML format.


Yea I knew that but client's won't upgrade to 07 till later. I'm stuck with 03.



Dave Kreskowiak wrote:

Why does it appear that you're using Excel as a database, something that it is very poor at doing??


Were not. Client drops a csv file onto the pivotGrid, we import that data into the pivotGrid and in doing so we needed to make sure that the columns are setup correctly (ie.minus the F3 float bug).

The first round I was grabbing the data using strictly ado..Stopped using ado because of the way it determines DataTypes on columns..then moved to a csv parser using StreamReader but then lost our dataTypes. So now im researching other alternatives but there doesn't seem to be any.

I do appreciate your response and time Dave. I understand I'm stuck with what I have now. I'll keep trying other idea's.

Enjoy your afternoon.
GeneralRe: Need suggestion on getting column data from excel without using ADO or Excel Interops Pin
Dave Kreskowiak27-May-09 12:01
mveDave Kreskowiak27-May-09 12:01 
QuestionTo Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 8:14
Rajdeep.NET is BACK26-May-09 8:14 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Ian McCaul26-May-09 8:26
Ian McCaul26-May-09 8:26 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak PinPopular
fly90426-May-09 8:46
fly90426-May-09 8:46 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 20:13
Rajdeep.NET is BACK26-May-09 20:13 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak PinPopular
Dave Kreskowiak26-May-09 9:11
mveDave Kreskowiak26-May-09 9:11 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 19:32
Rajdeep.NET is BACK26-May-09 19:32 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Dave Kreskowiak27-May-09 1:11
mveDave Kreskowiak27-May-09 1:11 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA26-May-09 10:11
EliottA26-May-09 10:11 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 19:42
Rajdeep.NET is BACK26-May-09 19:42 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Colin Angus Mackay26-May-09 21:05
Colin Angus Mackay26-May-09 21:05 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA27-May-09 2:50
EliottA27-May-09 2:50 
AnswerRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
0x3c026-May-09 10:39
0x3c026-May-09 10:39 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Rajdeep.NET is BACK26-May-09 20:08
Rajdeep.NET is BACK26-May-09 20:08 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
Guffa26-May-09 10:40
Guffa26-May-09 10:40 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
EliottA26-May-09 10:45
EliottA26-May-09 10:45 
GeneralRe: To Henry Minute, Original Griff, fly904, stancrm, Computafreak, Guffa, DaveyM69, J4amieC, Tom Deketelaere and Dave Kreskowiak Pin
fly90426-May-09 10:48
fly90426-May-09 10:48 

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.