change a value in an excel sheet from c# -


i want change specific value in excel sheet c#. when print value of cell changed gives me new one, when re-run code or if checked real excel sheet old value still there. code following:

console.writeline("now enter please new password:"); string newpass = console.readline();                                     currentworksheet.cells[2,1].value = newpass; console.writeline(currentworksheet.cells[2, 1].value.tostring()); 

am missing , why excel sheet isn't changing?? appreciated.

you manipulate excel file using kind of excel library. modify value, not save file.

check documentation of library, there should kind of save command save modified excel sheet disk.


Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -