Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: adress standardization Pin
musefan8-Jan-09 1:55
musefan8-Jan-09 1:55 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 1:55
professionalEddy Vluggen8-Jan-09 1:55 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 2:02
lawrenceinba8-Jan-09 2:02 
GeneralRe: adress standardization Pin
Eddy Vluggen8-Jan-09 3:39
professionalEddy Vluggen8-Jan-09 3:39 
GeneralRe: adress standardization Pin
lawrenceinba8-Jan-09 4:34
lawrenceinba8-Jan-09 4:34 
AnswerRe: adress standardization Pin
Henry Minute8-Jan-09 1:44
Henry Minute8-Jan-09 1:44 
QuestionWeb Browser Control events Pin
Nagaraj Muthuchamy7-Jan-09 23:25
professionalNagaraj Muthuchamy7-Jan-09 23:25 
QuestionHow to open a excel2007 file in read-only mode? Pin
llllllkk7-Jan-09 23:22
llllllkk7-Jan-09 23:22 
I have a C# code below that only reads data from an excel file.
When I used Excel 10.0 object library (Excel 2003), it works fine. After I change to excel 12.0 object library (Excel 2007), the application always indicates the excel file has been changed, and asks if I want to save the change. Actually the application will never change the data.

MSExcel.Workbook xlsWorkbook = xlsApp.Workbooks.Open(FileName, 0, true, 5, "", "", false, MSExcel.XlPlatform.xlWindows, "\t", false, false, 0, true, false, MSExcel.XlCorruptLoad.xlNormalLoad);

...
...
...

xlsApp.Workbooks.Close();

Does anybody know how to open the file in Read-Only mode to avoid the problem?

Thanks.

lk

AnswerRe: How to open a excel2007 file in read-only mode? Pin
EliottA8-Jan-09 2:37
EliottA8-Jan-09 2:37 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk8-Jan-09 3:46
llllllkk8-Jan-09 3:46 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA8-Jan-09 3:48
EliottA8-Jan-09 3:48 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk8-Jan-09 15:38
llllllkk8-Jan-09 15:38 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA9-Jan-09 2:28
EliottA9-Jan-09 2:28 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
llllllkk9-Jan-09 4:15
llllllkk9-Jan-09 4:15 
GeneralRe: How to open a excel2007 file in read-only mode? Pin
EliottA9-Jan-09 4:21
EliottA9-Jan-09 4:21 
AnswerRe: How to open a excel2007 file in read-only mode? Pin
llllllkk9-Jan-09 4:28
llllllkk9-Jan-09 4:28 
Questioncreate customize control Pin
Naveed7277-Jan-09 23:09
Naveed7277-Jan-09 23:09 
AnswerRe: create customize control [modified] Pin
Lev Danielyan7-Jan-09 23:25
Lev Danielyan7-Jan-09 23:25 
JokeRe: create customize control Pin
DaveyM697-Jan-09 23:58
professionalDaveyM697-Jan-09 23:58 
GeneralRe: create customize control Pin
Lev Danielyan8-Jan-09 0:01
Lev Danielyan8-Jan-09 0:01 
Questionincreasing the states(input) in the below c# code Pin
lawrenceinba7-Jan-09 22:59
lawrenceinba7-Jan-09 22:59 
AnswerRe: increasing the states(input) in the below c# code Pin
Dragonfly_Lee8-Jan-09 19:59
Dragonfly_Lee8-Jan-09 19:59 
GeneralRe: increasing the states(input) in the below c# code Pin
lawrenceinba8-Jan-09 21:30
lawrenceinba8-Jan-09 21:30 
GeneralRe: increasing the states(input) in the below c# code Pin
Dragonfly_Lee8-Jan-09 21:37
Dragonfly_Lee8-Jan-09 21:37 
Questionhow to remove the control from the winform by clicking the button on the control in the desin environment Pin
mctramp1687-Jan-09 22:49
mctramp1687-Jan-09 22:49 

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.