Click here to Skip to main content
15,887,464 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert String to Decimal Pin
Jimmanuel7-Feb-08 3:15
Jimmanuel7-Feb-08 3:15 
AnswerRe: How to convert String to Decimal Pin
Guffa7-Feb-08 3:24
Guffa7-Feb-08 3:24 
AnswerRe: How to convert String to Decimal Pin
Thomas Stockwell8-Feb-08 7:22
professionalThomas Stockwell8-Feb-08 7:22 
GeneralLinking listbox scrolling in multiple listboxes. Pin
GuyThiebaut7-Feb-08 2:58
professionalGuyThiebaut7-Feb-08 2:58 
GeneralRe: Linking listbox scrolling in multiple listboxes. Pin
led mike7-Feb-08 4:34
led mike7-Feb-08 4:34 
GeneralRe: Linking listbox scrolling in multiple listboxes. Pin
GuyThiebaut8-Feb-08 1:09
professionalGuyThiebaut8-Feb-08 1:09 
GeneralExcel process Pin
arkiboys7-Feb-08 2:45
arkiboys7-Feb-08 2:45 
GeneralRe: Excel process Pin
Jimmanuel7-Feb-08 8:09
Jimmanuel7-Feb-08 8:09 
not sure if this will help you or not, but what the hell . . .

If you use the MS Office Interop classes (MSDN 1[^] MSDN 2[^]) there's a property in the Workbook class that might help you. The simplest way of opening an Excel file is
ApplicationClass excelApp = new ApplicationClass();
_Workbook myWorkbook = excelApp.Workbooks.Open(@"C:\test.xls", Missing.Value, Missing.Value, Missing.Value,
    Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value,
    Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);

and then you'll have available the myWorkbook.ReadOnly property that tests several different conditions, one of which is if the file is already open in Excel. If the file is already open or otherwise un-editable then this property will return true and you'll know you have to yell at your user and tell him/her to close it before you can modify it.



Generalproblem in windows application...please help me Pin
Prashant B. Lavate7-Feb-08 2:31
Prashant B. Lavate7-Feb-08 2:31 
GeneralRe: problem in windows application...please help me Pin
Vikram A Punathambekar7-Feb-08 2:46
Vikram A Punathambekar7-Feb-08 2:46 
GeneralRe: problem in windows application...please help me Pin
electriac7-Feb-08 4:18
electriac7-Feb-08 4:18 
GeneralRe: problem in windows application...please help me Pin
Ravenet7-Feb-08 16:24
Ravenet7-Feb-08 16:24 
QuestionRetriving images from sqlserver Pin
rajeshkumar g7-Feb-08 2:17
rajeshkumar g7-Feb-08 2:17 
GeneralRe: Retriving images from sqlserver Pin
pmarfleet7-Feb-08 2:25
pmarfleet7-Feb-08 2:25 
GeneralRe: Retriving images from sqlserver Pin
rajeshkumar g8-Feb-08 1:00
rajeshkumar g8-Feb-08 1:00 
GeneralRe: Retriving images from sqlserver Pin
pmarfleet8-Feb-08 8:34
pmarfleet8-Feb-08 8:34 
GeneralRe: Retriving images from sqlserver Pin
Giorgi Dalakishvili7-Feb-08 2:46
mentorGiorgi Dalakishvili7-Feb-08 2:46 
GeneralRe: Retriving images from sqlserver Pin
Expert Coming7-Feb-08 16:02
Expert Coming7-Feb-08 16:02 
GeneralRe: Retriving images from sqlserver Pin
rajeshkumar g8-Feb-08 0:59
rajeshkumar g8-Feb-08 0:59 
QuestionUpdate Panel Error on Postback Pin
Chetan Patel7-Feb-08 2:05
Chetan Patel7-Feb-08 2:05 
GeneralWrong forum Pin
pmarfleet7-Feb-08 2:26
pmarfleet7-Feb-08 2:26 
GeneralTable in Windows Application (C#) Pin
peter rankel7-Feb-08 1:08
peter rankel7-Feb-08 1:08 
GeneralRe: Table in Windows Application (C#) Pin
phannon867-Feb-08 1:14
professionalphannon867-Feb-08 1:14 
GeneralRe: Table in Windows Application (C#) Pin
engsrini7-Feb-08 15:14
engsrini7-Feb-08 15:14 
GeneralTable in Windows Application (C#) Pin
peter rankel7-Feb-08 18:46
peter rankel7-Feb-08 18:46 

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.