Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
Luc Pattyn12-Nov-11 1:56
sitebuilderLuc Pattyn12-Nov-11 1:56 
AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
BobJanova13-Nov-11 22:45
BobJanova13-Nov-11 22:45 
QuestionWinForms - Scroll Panel On Mouse Wheel Pin
Matt U.11-Nov-11 14:27
Matt U.11-Nov-11 14:27 
AnswerRe: WinForms - Scroll Panel On Mouse Wheel Pin
BillWoodruff11-Nov-11 15:54
professionalBillWoodruff11-Nov-11 15:54 
GeneralRe: WinForms - Scroll Panel On Mouse Wheel Pin
Matt U.11-Nov-11 16:10
Matt U.11-Nov-11 16:10 
AnswerRe: WinForms - Scroll Panel On Mouse Wheel Pin
OriginalGriff11-Nov-11 21:51
mveOriginalGriff11-Nov-11 21:51 
GeneralRe: WinForms - Scroll Panel On Mouse Wheel Pin
Matt U.12-Nov-11 1:43
Matt U.12-Nov-11 1:43 
QuestionAnyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 7:22
professionalAlaric_11-Nov-11 7:22 
Using COM interop with Excel|Ace 12 driver

Short background: Vendor delivers excel spreadsheet to be imported into our system. We had an agreed upon interface, and vendor did not meet the interface. I have been called in to shoehorn their data into the process.

Essentially, they put a piece of data in the incorrect column and it needs to be extracted from the existing column into a column of its own. They messed up on the datatype of another column, and TypeGuessRows is causing the Excel engine to infer that the column is numeric when in fact it is text.

If I can COM interop with the spreadsheet, extract the requisite data out of the current column, place it in its proper location within the sheet, then programmatically alter the datatype of the offending column from "General" directly to "Text", our existing process will be able to pick up fine. If not, the changes will be more invasive.

I cannot find any information at all on how to programmatically extract a column nor can I find any information on the interface that would allow me to change the datatype on an existing worksheet.

Does anyone know where I might find this information? Can anyone provide any examples of how either of these 2 tasks might be accomplished?

Would COM interop even be the way to go with this? Can you think of a better way?
"I need build Skynet. Plz send code"


modified 11-Nov-11 13:31pm.

AnswerRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Wayne Gaylard11-Nov-11 7:33
professionalWayne Gaylard11-Nov-11 7:33 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 8:12
professionalAlaric_11-Nov-11 8:12 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Wayne Gaylard11-Nov-11 8:26
professionalWayne Gaylard11-Nov-11 8:26 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 8:31
professionalAlaric_11-Nov-11 8:31 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 8:40
professionalAlaric_11-Nov-11 8:40 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Wayne Gaylard11-Nov-11 8:49
professionalWayne Gaylard11-Nov-11 8:49 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 10:40
professionalAlaric_11-Nov-11 10:40 
QuestionArgumentException Pin
si_6911-Nov-11 5:39
si_6911-Nov-11 5:39 
AnswerRe: ArgumentException Pin
SledgeHammer0111-Nov-11 7:09
SledgeHammer0111-Nov-11 7:09 
GeneralRe: ArgumentException Pin
AspDotNetDev11-Nov-11 7:34
protectorAspDotNetDev11-Nov-11 7:34 
GeneralRe: ArgumentException Pin
SledgeHammer0111-Nov-11 7:47
SledgeHammer0111-Nov-11 7:47 
GeneralRe: ArgumentException Pin
AspDotNetDev11-Nov-11 7:53
protectorAspDotNetDev11-Nov-11 7:53 
AnswerRe: ArgumentException Pin
Not Active11-Nov-11 7:31
mentorNot Active11-Nov-11 7:31 
AnswerRe: ArgumentException Pin
Ennis Ray Lynch, Jr.11-Nov-11 8:49
Ennis Ray Lynch, Jr.11-Nov-11 8:49 
AnswerRe: ArgumentException Pin
jschell11-Nov-11 12:37
jschell11-Nov-11 12:37 
QuestionWorking with MP3 Files Pin
adigi10-Nov-11 23:53
adigi10-Nov-11 23:53 
AnswerRe: Working with MP3 Files Pin
Wayne Gaylard11-Nov-11 0:04
professionalWayne Gaylard11-Nov-11 0:04 

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.